📝 try new release action

This commit is contained in:
ValKmjolnir 2024-05-16 00:06:45 +08:00
parent 939257d684
commit 7ab40e57e3
1 changed files with 44 additions and 28 deletions

View File

@ -24,20 +24,28 @@ jobs:
run: make test run: make test
- name: package - name: package
run: python3 tools/pack.py run: python3 tools/pack.py
- name: Release file # - name: Release file
# You may pin to the exact commit or the version. # # You may pin to the exact commit or the version.
# uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 # # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236
uses: ValKmjolnir/action-automatic-releases@v1 # uses: ValKmjolnir/action-automatic-releases@v1
with: # with:
# GitHub auth token # # GitHub auth token
repo_token: ${{ secrets.GITHUB_TOKEN }} # repo_token: ${{ secrets.GITHUB_TOKEN }}
# Name of Release to add file to # # Name of Release to add file to
title: macOS Nightly build # title: macOS Nightly build
# Name of the tag for the release (will be associated with current branch) # # Name of the tag for the release (will be associated with current branch)
automatic_release_tag: next_macOS # automatic_release_tag: next_macOS
# File to release # # File to release
files: | # files: |
nasal-Darwin.tar # nasal-Darwin.tar
- name: Release
uses: softprops/action-gh-release@v2.0.5
if: startsWith(github.ref, 'refs/tags/')
with:
name: macOS nightly build
tag_name: next_macOS
files: |
nasal-Darwin.tar
linux-x86_64-build: linux-x86_64-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -53,17 +61,25 @@ jobs:
run: make test run: make test
- name: package - name: package
run: python3 tools/pack.py run: python3 tools/pack.py
- name: Release file # - name: Release file
# You may pin to the exact commit or the version. # # You may pin to the exact commit or the version.
# uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 # # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236
uses: ValKmjolnir/action-automatic-releases@v1 # uses: ValKmjolnir/action-automatic-releases@v1
with: # with:
# GitHub auth token # # GitHub auth token
repo_token: ${{ secrets.GITHUB_TOKEN }} # repo_token: ${{ secrets.GITHUB_TOKEN }}
# Name of Release to add file to # # Name of Release to add file to
title: Linux Nightly build # title: Linux Nightly build
# Name of the tag for the release (will be associated with current branch) # # Name of the tag for the release (will be associated with current branch)
automatic_release_tag: next_linux_x86_64 # automatic_release_tag: next_linux_x86_64
# File to release # # File to release
files: | # files: |
nasal-Linux.tar # nasal-Linux.tar
- name: Release
uses: softprops/action-gh-release@v2.0.5
if: startsWith(github.ref, 'refs/tags/')
with:
name: linux nightly build
tag_name: next_linux_x86_64
files: |
nasal-Linux.tar