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: release automation | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nim | ||
id: install-nim | ||
run: | | ||
./install.sh | ||
export PATH="~/nimble/bin:$PATH" | ||
echo $PATH | ||
- name: Compile Takajo | ||
id: compile-takajo | ||
run: | | ||
nimble update | ||
nimble build -d:release --threads:on | ||
# A release created by shogo82148/actions-create-release is alway draft here. | ||
# So users may not see an empty release. | ||
- name: Upload Assets | ||
uses: shogo82148/actions-upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: assets.txt | ||
# shogo82148/actions-create-release publishes the release in the end of the job. | ||
# Users now can download `assets.txt` from the release page. |