0.1.0-rc #5
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: 🚀 Build & Release | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write # To add binaries to release | |
packages: write # Required for nested job in image_build workflow | |
jobs: | |
container-img: | |
uses: hotosm/gh-workflows/.github/workflows/[email protected] | |
with: | |
build_target: release | |
image_name: "ghcr.io/${{ github.repository }}" | |
binaries: | |
runs-on: ubuntu-latest | |
container: | |
image: docker.io/goreleaser/goreleaser-cross:v1.23 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Goreleaser | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
# Required because of https://github.com/actions/checkout/issues/766 | |
git config --global --add safe.directory "${GITHUB_WORKSPACE}" | |
goreleaser release |