Skip to content

Commit

Permalink
Update auto_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ponapalt committed Nov 10, 2024
1 parent 921fd0b commit 4a1fddf
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
steps:
- name: install dependencies
run: sudo apt-get install p7zip-full

- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Delete all releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,6 +42,7 @@ jobs:
for tag in $tags; do
gh api -X DELETE repos/${{ github.repository }}/git/refs/tags/$tag
done
- name: build nar
run: |
# Remove repository files
Expand All @@ -57,25 +60,17 @@ jobs:
# Create NAR file
7z a -tzip "yayame.nar" ./*
- name: create release
id: create_release
uses: actions/create-release@v1
- name: Create and upload release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_id }}
release_name: 自動リリース
name: 自動リリース
body: |
エラーチェックで引っかからなかった時の自動リリースです
draft: false
prerelease: false
- name: upload nar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./yayame.nar
asset_name: yayame.nar
asset_content_type: application/zip
files: |
yayame.nar

0 comments on commit 4a1fddf

Please sign in to comment.