-
Notifications
You must be signed in to change notification settings - Fork 117
45 lines (42 loc) · 1.34 KB
/
archive.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Archive source code with third party library
name: Archive Source Code
on:
workflow_dispatch:
jobs:
archive-source-code:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
- name: Read Plugin Version
run: |
VERSION=`cat UnrealJS.uplugin | jq -r '.VersionName'`
echo "UNREALJS_VERSION=v$VERSION" >> $GITHUB_ENV
shell: bash
- name: Download 3rd party library
run: |
chmod +x ./install-v8-libs.sh
./install-v8-libs.sh
shell: bash
- name: Compress Source Code
run: zip -r unrealjs-plugin-full.zip . -x ".git/*" ".github/*" "*.zip"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.UNREALJS_VERSION }}
release_name: Full Source Code of ${{ env.UNREALJS_VERSION }}
draft: false
prerelease: false
- name: Upload Compressed Source Code
id: upload-source-code
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./unrealjs-plugin-full.zip
asset_name: unrealjs-plugin-full.zip
asset_content_type: application/zip