build: setup release pipeline after transfer (#100) #2
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: Release-please | |
on: | |
push: | |
branches: [main] | |
jobs: | |
release-please: | |
# The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks. | |
if: github.repository == 'hetznercloud/packer-plugin-hcloud' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
with: | |
token: ${{ secrets.HCLOUD_BOT_TOKEN }} | |
release-type: go | |
package-name: packer-plugin-hcloud | |
extra-files: | | |
version/version.go |