1.13.1-a #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build on release | |
on: | |
release: | |
types: | |
- released | |
- prereleased | |
jobs: | |
build: | |
name: Build | |
uses: ./.github/workflows/build.yml | |
upload_release_assets: | |
name: Attach artifact to release assets | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.4 | |
- name: Prepare output directory | |
run: | | |
mkdir ./out | |
mkdir ./out/japanese | |
- name: Download artifact | |
uses: actions/download-artifact@v4.1.7 | |
with: | |
name: japanese | |
path: ./out/japanese | |
- name: Copy necessary file | |
run: | | |
cp ./.github/README.txt ./out/README.txt | |
cp ./LICENSE ./out/LICENSE | |
- name: Zip artifact | |
run: zip -r ./japanese.zip ./ | |
working-directory: ./out | |
- name: Upload artifact as release asset | |
run: gh release upload ${TAG_NAME} ./out/japanese.zip --repo ${REPOSITORY} | |
env: | |
GH_TOKEN: ${{ github.token }} | |
TAG_NAME: ${{ github.event.release.tag_name }} | |
REPOSITORY: ${{ github.repository }} |