Skip to content

Commit

Permalink
chore: Cleanup release workflow (philips-labs#2814)
Browse files Browse the repository at this point in the history
* refactor: Remove deprecated action

* refactor: Remove deprecated action

* refactor: Remove deprecated action

* cleanup workflow

* cleanup workflow

* cleanup workflow

* Remmove sematic relelease
  • Loading branch information
npalm authored Dec 28, 2022
1 parent eaf94a5 commit 68a96a1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3,560 deletions.
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,3 @@ updates:
directory: "/modules/runners/lambdas/runners"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/.release"
schedule:
interval: "weekly"
39 changes: 16 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- refactor/release
- v1

jobs:
prepare:
Expand Down Expand Up @@ -41,32 +41,30 @@ jobs:
needs:
prepare
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
releases_created: ${{ steps.release.outputs.releases_created }}
permissions:
contents: write
issues: write
pull-requests: write
actions: write
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Get installation token
uses: npalm/action-app-token@v1.1.0
uses: philips-software/app-token-action@v1.1.2
id: token
with:
appId: ${{ secrets.FOREST_RELEASER_APP_ID }}
appPrivateKeyBase64: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
appInstallationType: repo
appInstallationValue: ${{ github.repository }}
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
auth_type: installation


- name: Extract branch name
id: branch
shell: bash
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

# bootstrap-sha and release-as needs to be removed after first release
- name: Release
id: release
uses: google-github-actions/release-please-action@5c07f8be172b1f6e90f9c35baf8184461b91b85f # ratchet:google-github-actions/release-please-action@v3
with:
default-branch: main
default-branch: ${{ steps.branch.outputs.name }}
release-type: terraform-module
token: ${{ steps.token.outputs.token }}
last-release-sha: b404332ff8b401a5a8958317a69b9f849b794a16

assets:
name: upload assets
Expand All @@ -81,18 +79,13 @@ jobs:
actions: read

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: ${{ matrix.asset }}
path: artifacts

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: artifacts/${{ matrix.asset }}.zip
asset_name: ${{ matrix.asset }}.zip
asset_content_type: application/zip
run:
gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip
18 changes: 0 additions & 18 deletions .release/package.json

This file was deleted.

Loading

0 comments on commit 68a96a1

Please sign in to comment.