Skip to content

Commit

Permalink
использование ncipollo
Browse files Browse the repository at this point in the history
  • Loading branch information
kdavjd authored Nov 17, 2024
1 parent a0d2344 commit 57708bc
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/build-pid-sim-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

permissions:
contents: write
releases: write

jobs:
build-and-release:
Expand Down Expand Up @@ -47,26 +46,12 @@ jobs:
exit 1
}
# 7. Create a GitHub Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
# 7. Create Release and Upload EXE
- name: Create Release and Upload EXE
uses: ncipollo/release-action@v1
with:
tag_name: "release-${{ github.run_number }}"
release_name: "Release ${{ github.run_number }}"
body: "Автоматически сгенерированный релиз."
draft: false
prerelease: false

# 8. Upload the executable as a release asset
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
tag: "v0.0.${{ github.run_number }}"
name: "Release ${{ github.run_number }}"
files: "dist/pid-sim.exe"
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/pid-sim.exe
asset_name: pid-sim.exe
asset_content_type: application/octet-stream

0 comments on commit 57708bc

Please sign in to comment.