Skip to content

Commit

Permalink
Move release creation outside of matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed Mar 14, 2024
1 parent 22046d7 commit efaee1c
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ concurrency:

jobs:
deployment:
permissions:
packages: write
permissions: write-all
environment: deploy
runs-on: ubuntu-latest
outputs:
version: ${{ steps.versioncheck.outputs.version }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -91,6 +92,29 @@ jobs:
welcome/build/
retention-days: 1

- name: Build Changelog
id: changelog
uses: ardalanamini/auto-changelog@v3
with:
default-commit-type: New Features
github-token: ${{ github.token }}
if: github.event_name != 'workflow_dispatch'

- name: Create release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: true
release_name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
github-token: ${{ github.token }}
body: |
${{ steps.changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ github.token }}
if: github.event_name != 'workflow_dispatch'

dockerbuild:
permissions: write-all
runs-on: ubuntu-latest
Expand All @@ -108,8 +132,6 @@ jobs:
app: server
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download the previous produced artefacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -149,26 +171,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build Changelog
id: changelog
uses: ardalanamini/auto-changelog@v3
with:
default-commit-type: New Features
github-token: ${{ github.token }}
if: github.event_name != 'workflow_dispatch'

- name: Create release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: true
release_name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
github-token: ${{ github.token }}
body: |
${{ steps.changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ github.token }}
if: github.event_name != 'workflow_dispatch'

0 comments on commit efaee1c

Please sign in to comment.