-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 951 Bytes
/
release.yml
File metadata and controls
36 lines (32 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Release asset"
on:
release:
types:
- "published"
permissions:
contents: "write"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build_upload:
name: "Build and Upload"
runs-on: "ubuntu-latest"
env:
TAG_NAME: "${{ github.event.release.tag_name }}"
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
-
name: "Build ZIP"
run: |
git archive --prefix=plugin-name/ --format=zip --output="${{ runner.temp }}/plugin-name.${TAG_NAME#v}.zip" "${TAG_NAME}"
-
name: "Upload asset"
env:
GH_TOKEN: "${{ github.token }}"
run: |
gh release upload "${TAG_NAME}" "${{ runner.temp }}/plugin-name.${TAG_NAME#v}.zip"