Skip to content

Commit

Permalink
changes on build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanne-oliveira committed May 27, 2022
1 parent 3bdf352 commit 19c104a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [ master ]

permissions: write-all

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +19,7 @@ jobs:
id: semver_tagbump
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
WITH_V: false
DEFAULT_BUMP: patch

Expand All @@ -31,7 +33,7 @@ jobs:
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: actions/create-release@v1
Expand All @@ -43,12 +45,12 @@ jobs:
tag_name: ${{ steps.semver_tagbump.outputs.new_tag}}
body: ${{ steps.changelog.outputs.changes }}
env:
GITHUB_TOKEN: ${{github.token}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Upload artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: builds/ivcli
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/laravel-zero-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [ beta ]

permissions: write-all

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +19,7 @@ jobs:
id: semver_tagbump
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
WITH_V: false
DEFAULT_BUMP: patch

Expand All @@ -31,7 +33,7 @@ jobs:
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: actions/create-release@v1
Expand All @@ -43,12 +45,12 @@ jobs:
tag_name: ${{ steps.semver_tagbump.outputs.new_tag}}
body: ${{ steps.changelog.outputs.changes }}
env:
GITHUB_TOKEN: ${{github.token}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Upload artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: builds/ivcli
Expand Down

0 comments on commit 19c104a

Please sign in to comment.