Skip to content

Commit

Permalink
ci(release): update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jul 30, 2024
1 parent 445ef86 commit d11f03a
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/build-and-push-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,7 @@

name: Build and push OADA images

permissions:
packages: write
security-events: write
id-token: write
actions: read
checks: read
contents: read
deployments: read
issues: read
discussions: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
permissions: read-all

on:
push:
Expand Down Expand Up @@ -161,6 +148,10 @@ jobs:
- setup
- prebuild

permissions:
id-token: write
packages: write

strategy:
matrix:
service: ${{ fromJson(needs.setup.outputs.services) }}
Expand Down Expand Up @@ -279,6 +270,9 @@ jobs:
- setup
- build-and-push-services

permissions:
security-events: write

strategy:
matrix:
service: ${{ fromJson(needs.setup.outputs.services) }}
Expand Down Expand Up @@ -363,6 +357,10 @@ jobs:
- setup
- build-and-push-services

permissions:
contents: write
discussions: write

if: ${{ needs.setup.outputs.release }}

runs-on: ubuntu-latest
Expand Down Expand Up @@ -407,15 +405,16 @@ jobs:

- name: Create Release
id: create_release
uses: actions/create-release@v1.1.4
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: OADA v${{ needs.setup.outputs.version }}
name: OADA v${{ needs.setup.outputs.version }}
# Make draft and wait for person to release it?
draft: true
prerelease: ${{ !!needs.setup.outputs.prerelease }}
token: ${{ secrets.GITHUB_TOKEN}}

- name: Upload Release Compose File
id: upload-release-asset
Expand Down

0 comments on commit d11f03a

Please sign in to comment.