Skip to content

1.13.0-a

1.13.0-a #15

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: |
co ./.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 }}