Skip to content

Commit

Permalink
Adjust example to make GITHUB_TOKEN clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceadams committed Sep 4, 2020
1 parent 8a90bac commit 31425b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ on:
release:
types: [created]

env:
GITHUB_TOKEN: ${{ github.token }}

jobs:
build:
name: Build release binary
Expand All @@ -42,12 +39,16 @@ jobs:
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Build binary
run: cargo build --release --verbose

- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/my-widget
Expand Down

0 comments on commit 31425b4

Please sign in to comment.