-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (29 loc) · 890 Bytes
/
release.yml
File metadata and controls
36 lines (29 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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/image_build.yml@2.0.5
with:
build_target: release
image_name: "ghcr.io/${{ github.repository }}"
binaries:
runs-on: ubuntu-latest
container:
image: docker.io/goreleaser/goreleaser-cross:v1.24
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