Skip to content

Commit e73d9ab

Browse files
authored
Fix release job (#48)
1 parent 63fb886 commit e73d9ab

4 files changed

Lines changed: 15 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ env:
1717
jobs:
1818
release:
1919
runs-on: ubuntu-latest
20+
environment: Release
21+
permissions:
22+
contents: write
23+
packages: write
2024
steps:
2125
- name: Checkout
2226
uses: actions/checkout@v4
@@ -33,5 +37,4 @@ jobs:
3337
version: "~> v2"
3438
args: release --clean
3539
env:
36-
HOMEBREW_TAP_GH_TOKEN: ${{ secrets.HOMEBREW_TAP_GH_TOKEN }}
37-
40+
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GH_TOKEN }}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
1313

14-
# Go workspace file
15-
go.work
16-
1714
# IDE specific files
1815
.idea/
1916
*.swp

.goreleaser.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ archives:
2929
name_template: "construct_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3030
files:
3131
- README.md
32-
- LICENSE*
33-
- CHANGELOG.md
3432

3533
checksum:
3634
name_template: "construct_{{ .Version }}_checksums.txt"
@@ -56,10 +54,10 @@ release:
5654
brews:
5755
- name: construct
5856
repository:
59-
owner: "{{ .Env.GITHUB_OWNER | default \"furisto\" }}"
57+
owner: furisto
6058
name: homebrew-tap
6159
branch: main
62-
token: "{{ .Env.HOMEBREW_TAP_GH_TOKEN }}"
60+
token: "{{ .Env.GITHUB_TOKEN }}"
6361
commit_author:
6462
name: Thomas Schubart
6563
email: 24721048+Furisto@users.noreply.github.com
@@ -71,14 +69,6 @@ brews:
7169
test: |
7270
system "#{bin}/construct", "version"
7371
74-
env:
75-
- GITHUB_TOKEN
76-
- GITHUB_OWNER
77-
78-
git:
79-
ignore_tags:
80-
- "{{ .Env.SKIP_VALIDATE | default \"false\" }}"
81-
8272
# Uncomment if you want to skip builds for missing git tags during development
8373
# snapshot:
8474
# skip_publish: true

go.work

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
go 1.24.1
2+
3+
use (
4+
./api/go
5+
./backend
6+
./frontend/cli
7+
./shared
8+
)

0 commit comments

Comments
 (0)