From 2156193a81d52b7d5b338da90ef41077180a029d Mon Sep 17 00:00:00 2001 From: Yee Kit Date: Thu, 30 May 2024 00:31:38 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 36 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7958769..816c33d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ -# This workflow creates a zip archive and uploads to releases +# This workflow creates a new releases -name: Create & Upload Release +name: Release # Controls when the workflow will run on: @@ -28,28 +28,18 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@master - # Create Zip Archive - - name: Zip Release - uses: TheDoctor0/zip-release@0.7.6 + # Increment Tag Version + - name: Get next version + uses: reecetech/version-increment@2024.4.3 + id: version with: - type: 'zip' - filename: 'release.zip' - exclusions: '*.git* /*.github/*' - # Create Blank Tarball File - - name: Create Release Tarball File - run: | - touch release.tar.gz - # Create Tarball - - name: Tarball Release - uses: TheDoctor0/zip-release@0.7.6 - with: - type: 'tar' - filename: 'release.tar.gz' - exclusions: '.git .github release.zip release.tar.gz' - # Upload the Zip Archive to releases - - name: Upload Release + scheme: semver + increment: patch + # Create a New Release + - name: Create Release uses: ncipollo/release-action@v1.14.0 with: - artifacts: "release.zip,release.tar.gz" - allowUpdates: true + tag: ${{ steps.version.outputs.version }} + generateReleaseNotes: true + makeLatest: true token: ${{ secrets.GITHUB_TOKEN }}