Skip to content

Commit 9e6bf72

Browse files
committed
feat: release integartion plugin
1 parent a52b860 commit 9e6bf72

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

.github/workflows/build.yaml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
push:
66
branches: ["main", "dev"]
77

8-
permissions:
9-
contents: write
10-
118
jobs:
129
build:
1310
environment: main
@@ -81,13 +78,12 @@ jobs:
8178
working-directory: ./integration-plugin
8279
run: |
8380
tar -cvf integration-plugin.tar build
84-
85-
- name: Release Integration Plugin
86-
uses: softprops/action-gh-release@v2
81+
- name: Upload Integration Plugin Artifact
82+
uses: actions/upload-artifact@v3
8783
with:
88-
files: ./integration-plugin/integration-plugin.tar
89-
token: ${{ secrets.GH_ACCESS_TOKEN }}
90-
84+
name: integration-plugin
85+
path: ./integration-plugin/integration-plugin.tar
86+
retention-days: 1
9187

9288
- name: Set Latest Tag Output
9389
id: set_latest_tag
@@ -163,4 +159,24 @@ jobs:
163159
ghcr.io/${{ github.repository_owner }}/og-describer-github:local-latest
164160
ghcr.io/${{ github.repository_owner }}/og-describer-github:local-${{ needs.build.outputs.latest_tag }}
165161
file: DockerFileLocal
166-
context: .
162+
context: .
163+
release-integration-plugin:
164+
needs:
165+
- build
166+
runs-on: ubuntu-latest
167+
permissions:
168+
id-token: write
169+
contents: write
170+
environment: main
171+
steps:
172+
- name: Checkout Code
173+
uses: actions/checkout@v3
174+
- name: Download Integration Plugin Artifact
175+
uses: actions/download-artifact@v3
176+
with:
177+
name: integration-plugin
178+
- name: Release Integration Plugin
179+
uses: softprops/action-gh-release@v2
180+
with:
181+
files: integration-plugin.tar
182+
token: ${{ secrets.GH_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)