-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1007 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (33 loc) · 1007 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
37
38
39
name: release
on:
push:
tags:
- 'v*.*'
env:
PLUGIN_NAME: tropymd
jobs:
create-release:
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Resolve artifact name
id: meta
run: echo "artifact=${PLUGIN_NAME}-${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
- name: Build install zip
run: |
mkdir "${{ steps.meta.outputs.artifact }}"
cp index.js package.json icon.svg LICENSE README.md \
"${{ steps.meta.outputs.artifact }}/"
zip -r "${{ steps.meta.outputs.artifact }}.zip" \
"${{ steps.meta.outputs.artifact }}"
- name: Create release and upload zip
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.meta.outputs.artifact }}.zip
prerelease: false
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}