Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danclough committed Mar 26, 2024
1 parent 7bf4c32 commit a0198bf
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Publish

on:
push:
tags:
- 'v*'
release:
types: [published]
# tags:
# - 'v*'
# paths-ignore:
# - 'README.md'
# - 'LICENSE'
Expand All @@ -18,17 +20,17 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Bump version and push tag
# id: tag
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Write version
uses: DamianReeves/write-file-action@master
with:
path: ./VERSION
contents: |
${{ steps.tag.outputs.new_tag }}
${{ github.ref_name }}
write-mode: overwrite
- name: Set up QEMU
id: qemu
Expand All @@ -52,5 +54,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/danclough/amcrest2mqtt:latest
ghcr.io/danclough/amcrest2mqtt:${{ steps.tag.outputs.new_tag }}
labels: "version=${{ steps.tag.outputs.new_tag }}"
ghcr.io/danclough/amcrest2mqtt:${{ github.ref_name }}
labels: "version=${{ github.ref_name }}"

0 comments on commit a0198bf

Please sign in to comment.