Skip to content

Commit

Permalink
use default workflow token
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmontanaro committed Nov 18, 2022
1 parent 27cc61e commit e227631
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build and release cargo-shuttle
on:
on:
workflow_dispatch: {}
schedule:
- cron: '38 5 * * *'
jobs:
Expand Down Expand Up @@ -62,15 +63,18 @@ jobs:
- build
steps:
- id: download-artifacts
name: Download artifacts
uses: actions/download-artifact@v3

- id: create-release
name: Create Github release and upload assets
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir upload
mv cargo-shuttle-ubuntu/cargo-shuttle upload/cargo-shuttle_x86_64-unknown-linux-gnu
mv cargo-shuttle-windows/cargo-shuttle.exe upload/cargo-shuttle_x86_64-pc-windows-msvc
mv cargo-shuttle-macos/cargo-shuttle upload/cargo-shuttle_x86_64-apple-darwin
cd upload
echo ${{ secrets.RELEASE_TOKEN }} | gh auth login --with-token
gh release create ${{ needs.versions.outputs.upstream_version }} --repo jfmontanaro/cargo-shuttle-builds --notes '' *

0 comments on commit e227631

Please sign in to comment.