Repository navigation
chore: migrate release workflow from baseline to releaser #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Prepare release | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: New version without v prefix (e.g. 0.1.0) | ||
| required: true | ||
| type: string | ||
| base_sha: | ||
| description: Expected HEAD SHA of main | ||
| required: true | ||
| type: string | ||
| concurrency: | ||
| group: release-docker-apps | ||
| jobs: | ||
| prepare: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| actions: read | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: rubykatzen/releaser/.github/actions/verify-release@v0.4.1 | ||
| with: | ||
| base_sha: ${{ inputs.base_sha }} | ||
| - uses: rubykatzen/releaser/.github/actions/generate-notes@v0.4.1 | ||
| id: notes | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| - uses: rubykatzen/releaser/.github/actions/prepare-release-branch@v0.4.1 | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| - uses: rubykatzen/releaser/.github/actions/update-changelog@v0.4.1 | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| notes: ${{ steps.notes.outputs.notes }} | ||
| - uses: rubykatzen/releaser/.github/actions/push-release-branch@v0.4.1 | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Publish release | ||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [main] | ||
| jobs: | ||
| publish: | ||
| if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| outputs: | ||
| version: ${{ steps.meta.outputs.version }} | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| ref: main | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🤖 [rubykatzen/docker-apps]: In the inspected Useful? React with 👍 / 👎. |
||
| fetch-depth: 0 | ||
| - uses: rubykatzen/releaser/.github/actions/read-release-data@v0.4.1 | ||
| id: meta | ||
| with: | ||
| branch: ${{ github.event.pull_request.head.ref }} | ||
| - uses: rubykatzen/releaser/.github/actions/create-release@v0.4.1 | ||
| with: | ||
| version: ${{ steps.meta.outputs.version }} | ||
| notes: ${{ steps.meta.outputs.notes }} | ||
| upload: | ||
| needs: publish | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| ref: v${{ needs.publish.outputs.version }} | ||
| - id: bundle | ||
| uses: ./.github/actions/build-bundle | ||
| with: | ||
| bundle-name: docker-apps.zip | ||
| paths: | | ||
| apps | ||
| ansible.cfg | ||
| .env.example | ||
| backup.sh | ||
| deploy.sh | ||
| down.sh | ||
| generate-env.sh | ||
| lib.sh | ||
| logs.sh | ||
| restart.sh | ||
| up.sh | ||
| README.md | ||
| - run: gh release upload "v${{ needs.publish.outputs.version }}" "${{ steps.bundle.outputs.bundle-path }}" | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [rubykatzen/docker-apps]: This is the final step of the prepare workflow, and it only pushes
release/v${version}; the new publish workflow runs only when a PR intomainis closed. Aworkflow_dispatchrun therefore leaves the release process stalled unless someone manually creates the PR, contrary to the intended prepare → merge PR → publish flow; add a PR creation step/permission here or document and automate the manual handoff elsewhere.Useful? React with 👍 / 👎.