Feature: Bumps (#56) #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create GitHub Release from tag | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+-[a-zA-Z0-9]*' | |
- '[0-9]+.[0-9]+.[0-9]' | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
secrets: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref_name }} | |
body: | | |
<RELEASE SUMMARY> | |
```bash | |
# Docker Hub | |
$ docker pull jareddantis/blanco-bot:${{ github.ref_name }} | |
# GHCR | |
$ docker pull ghcr.io/jareddantis-bots/blanco-bot:${{ github.ref_name }} | |
``` | |
<hr> | |
## For users | |
- Change one | |
## For admins and developers | |
### Breaking changes | |
- Change two | |
### Other changes | |
- Change three | |
## Known bugs | |
- Bug one | |
draft: true | |
prerelease: false | |
- name: Prune untagged images | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'blanco-bot' | |
package-type: 'container' | |
min-versions-to-keep: 3 | |
delete-only-untagged-versions: 'true' |