Skip to content

Commit

Permalink
fix(workflows): Several fixes to streamline release process (#1725)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Jul 1, 2024
2 parents e5d1aaf + d0e25fc commit 4a79672
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 146 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildenvs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: buildenvs

on:
push:
branches: [stable]
release:
types: [released]
pull_request:
types: [opened, synchronize, reopened]
branches: [staging]
Expand Down
74 changes: 0 additions & 74 deletions .github/workflows/chore-tag-stable-weekly.yaml

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/myself-full.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: buildenvs/myself-full

# Build only on changes to the build environment itself
on:
push:
branches: [stable]
paths:
- 'buildenvs/myself.Dockerfile'
- '.github/workflows/myself-full.yaml'
release:
types: [released]

jobs:
myself-full-push:
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/myself.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/notarization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: mac-notarization

on:
release:
types: [released]
workflow_dispatch:

jobs:
notarization:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Run GoReleaser
run: |
GORELEASER_PREVIOUS_TAG=$(curl -s "https://get.kraftkit.sh/latest.txt")
GORELEASER_PREVIOUS_TAG="v$GORELEASER_PREVIOUS_TAG"
export GORELEASER_PREVIOUS_TAG
export GORELEASER_PREVIOUS_TAG="v$GORELEASER_PREVIOUS_TAG"
export GORELEASER_CURRENT_TAG="${{ github.ref_name }}"
echo "$GOOGLE_APPLICATION_JSON" > /tmp/gs.json
goreleaser release \
--config goreleaser-stable.yaml \
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/tools-webinstall.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: tools/webinstall

on:
push:
branches: [stable]
paths:
- 'tools/webinstall/**'
release:
types: [released]

jobs:
myself-push:
Expand All @@ -20,6 +18,11 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Build & Push OCI Image
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 4a79672

Please sign in to comment.