Skip to content

chore: Cleanup release workflow #2814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-[email protected].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