Skip to content

0.1.0-beta

0.1.0-beta #3

Workflow file for this run

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