Skip to content

Commit 347e981

Browse files
committed
Updated gh actions
1 parent fd0e48c commit 347e981

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

.github/workflows/build.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,23 @@ jobs:
1717
version: jammy
1818
- os: ubuntu
1919
version: noble
20-
20+
permissions:
21+
contents: write
2122
steps:
22-
- uses: actions/checkout@v4
23-
24-
- name: Commit Hash
25-
id: commit
26-
uses: prompt/actions-commit-hash@v3
27-
2823
- name: Set up QEMU
2924
uses: docker/setup-qemu-action@v3
3025
with:
3126
platforms: arm64
3227

28+
- name: Checkout repo
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Commit Hash
34+
id: commit
35+
uses: prompt/actions-commit-hash@v3
36+
3337
- name: Set up Docker Buildx
3438
uses: docker/setup-buildx-action@v3
3539

@@ -51,3 +55,14 @@ jobs:
5155
with:
5256
name: openstreetmap-cgimap-dbgsym_${{ matrix.version }}
5357
path: debian/artifacts/openstreetmap-cgimap-dbgsym_*.deb
58+
59+
- name: Release
60+
uses: softprops/action-gh-release@v2
61+
if: startsWith(github.ref, 'refs/tags/')
62+
with:
63+
draft: true
64+
name: Release ${{ github.ref }}
65+
files: |
66+
debian/artifacts/openstreetmap-cgimap_*.deb
67+
debian/artifacts/openstreetmap-cgimap-dbgsym_*.deb
68+

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
name: "Release: Make release candidate"
88
jobs:
99
draft_release:
10+
if: ${{ false }}
1011
name: ${{ matrix.os }} ${{ matrix.version }}
1112
runs-on: ubuntu-latest
1213
strategy:
@@ -55,5 +56,7 @@ jobs:
5556
name: Release ${{ github.ref }}
5657
files: |
5758
debian/artifacts/openstreetmap-cgimap_*.deb
58-
59+
debian/artifacts/openstreetmap-cgimap-dbgsym_*.deb
60+
61+
5962

0 commit comments

Comments
 (0)