Skip to content

Commit

Permalink
ci: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsukina-7mochi committed Jan 17, 2025
1 parent 060d5e8 commit 59bd200
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Release
on:
workflow_dispatch:

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -15,14 +18,14 @@ jobs:
"name": "psd",
"output": "./dist/Export as psd.lua"
}'
- '{
"name": "icon-and-cursor",
"output": "./dist/Export as ico cur ani.lua"
}'
- '{
"name": "lcd-pixel-filter",
"output": "./dist/LCD Pixel Filter.lua"
}'
# - '{
# "name": "icon-and-cursor",
# "output": "./dist/Export as ico cur ani.lua"
# }'
# - '{
# "name": "lcd-pixel-filter",
# "output": "./dist/LCD Pixel Filter.lua"
# }'

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -67,12 +70,14 @@ jobs:
- name: Create tag
if: ${{ steps.tag-check.outputs.exists == 0 }}
run: git tag ${{ env.tag-name }}
run: |
git tag ${{ env.tag-name }}
git push origin ${{ env.tag-name }}
- name: Create Release
if: ${{ steps.tag-check.outputs.exists == 0 }}
env:
FILENAME: ${{ fromJSON(matrix.target).output }}
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ env.tag-name }}" -t "${{ github.env.release-name }}" "$FILENAME"
gh release create "${{ env.tag-name }}" -t "${{ env.release-name }}" "$FILENAME"

0 comments on commit 59bd200

Please sign in to comment.