-
-
Notifications
You must be signed in to change notification settings - Fork 67
31 lines (31 loc) · 914 Bytes
/
release.yml
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
name: Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- run: ./ciScripts/buildPlugin.sh
env:
RELEASE_NOTES: ${{ github.event.release.body }}
VERSION: ${{ github.ref }}
- name: Copy zip file
run: cp build/distributions/*.zip one-dark-theme.zip
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: one-dark-theme.zip
asset_name: one-dark-theme.zip
asset_content_type: application/zip
- run: ./gradlew publishPlugin
env:
VERSION: ${{ github.ref }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}