Skip to content

Commit

Permalink
add write PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Apr 10, 2021
1 parent 1bb538b commit bc0206a
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: Upload Release Asset

jobs:
build:
if: github.event.base_ref == 'refs/heads/master'
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
Expand All @@ -24,28 +25,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.WRITE_GITHUB_TOKEN }}
with:
files: ./target/wallet_brute_forcer-0.0.1-SNAPSHOT.jar
fail_on_unmatched_files: true

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
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: ./target/wallet_brute_forcer-0.0.1-SNAPSHOT.jar
asset_name: brute-forcer-${{ steps.get_version.outputs.version }}.jar
asset_content_type: application/java-archive

0 comments on commit bc0206a

Please sign in to comment.