Merge pull request #1 from skylee03/fix-toggle #42
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Latest Commit | |
uses: actions/checkout@v4 | |
with: | |
filter: blob:none | |
- name: Tag the Latest Commit | |
run: | | |
git tag -f latest | |
git push -f origin latest | |
- name: Download Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: TypeDuck-Web | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
run: | | |
tar -xvf TypeDuck-Web.tar | |
zip -r TypeDuck-Web.zip TypeDuck-Web | |
gh release upload latest TypeDuck-Web.zip --clobber |