Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 68a96a1

Browse files
authored
chore: Cleanup release workflow (#2814)
* refactor: Remove deprecated action * refactor: Remove deprecated action * refactor: Remove deprecated action * cleanup workflow * cleanup workflow * cleanup workflow * Remmove sematic relelease
1 parent eaf94a5 commit 68a96a1

File tree

5 files changed

+16
-3560
lines changed

5 files changed

+16
-3560
lines changed

Diff for: .github/dependabot.yml

-5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,3 @@ updates:
2626
directory: "/modules/runners/lambdas/runners"
2727
schedule:
2828
interval: "weekly"
29-
30-
- package-ecosystem: "npm"
31-
directory: "/.release"
32-
schedule:
33-
interval: "weekly"

Diff for: .github/workflows/release.yml

+16-23
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- refactor/release
7+
- v1
88

99
jobs:
1010
prepare:
@@ -41,32 +41,30 @@ jobs:
4141
needs:
4242
prepare
4343
outputs:
44-
upload_url: ${{ steps.release.outputs.upload_url }}
4544
releases_created: ${{ steps.release.outputs.releases_created }}
46-
permissions:
47-
contents: write
48-
issues: write
49-
pull-requests: write
50-
actions: write
45+
tag_name: ${{ steps.release.outputs.tag_name }}
5146
steps:
5247
- name: Get installation token
53-
uses: npalm/action-[email protected].0
48+
uses: philips-software/app-token-action@v1.1.2
5449
id: token
5550
with:
56-
appId: ${{ secrets.FOREST_RELEASER_APP_ID }}
57-
appPrivateKeyBase64: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
58-
appInstallationType: repo
59-
appInstallationValue: ${{ github.repository }}
51+
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
52+
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
53+
auth_type: installation
54+
55+
56+
- name: Extract branch name
57+
id: branch
58+
shell: bash
59+
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
6060

61-
# bootstrap-sha and release-as needs to be removed after first release
6261
- name: Release
6362
id: release
6463
uses: google-github-actions/release-please-action@5c07f8be172b1f6e90f9c35baf8184461b91b85f # ratchet:google-github-actions/release-please-action@v3
6564
with:
66-
default-branch: main
65+
default-branch: ${{ steps.branch.outputs.name }}
6766
release-type: terraform-module
6867
token: ${{ steps.token.outputs.token }}
69-
last-release-sha: b404332ff8b401a5a8958317a69b9f849b794a16
7068

7169
assets:
7270
name: upload assets
@@ -81,18 +79,13 @@ jobs:
8179
actions: read
8280

8381
steps:
82+
- uses: actions/checkout@v3
8483
- uses: actions/download-artifact@v3
8584
with:
8685
name: ${{ matrix.asset }}
87-
path: artifacts
8886

8987
- name: Upload Release Asset
90-
id: upload-release-asset
91-
uses: actions/upload-release-asset@v1
9288
env:
9389
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94-
with:
95-
upload_url: ${{ needs.release.outputs.upload_url }}
96-
asset_path: artifacts/${{ matrix.asset }}.zip
97-
asset_name: ${{ matrix.asset }}.zip
98-
asset_content_type: application/zip
90+
run:
91+
gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip

Diff for: .release/package.json

-18
This file was deleted.

0 commit comments

Comments
 (0)