This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
72 lines (70 loc) · 2.01 KB
/
publish-workflow.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Package
on:
milestone:
types: [closed]
jobs:
package:
name: 'Linux'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1
- name: Setup
run: yarn
- name: Build
run: yarn build
- name: Change Package Script Access
run: chmod +x ./package/package.sh
- name: Package
shell: bash
run: |
cd ./package && ./package.sh
- name: Upload Package
uses: actions/upload-artifact@v1
with:
name: electionguard-admin
path: package/electionguard-admin.tar.gz
- name: Upload Linux Install Script
uses: actions/upload-artifact@v1
with:
name: install-script-linux
path: package/install.sh
release:
name: Upload Release
needs: [package]
runs-on: 'ubuntu-latest'
steps:
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_name: Milestone Release
tag_name: v1.0.0
draft: true
prerelease: true
- name: Download Package
uses: actions/download-artifact@v1
with:
name: electionguard-admin
- name: Download Linux Install Script
uses: actions/download-artifact@v1
with:
name: install-script-linux
- name: GZip Linux Artifacts
run: |
cp electionguard-admin/electionguard-admin.tar.gz .
cp install-script-linux/install.sh .
tar -zcvf electionguard-admin-artifacts.tar.gz electionguard-admin.tar.gz install.sh
- name: Display Artifacts
run: ls
- name: Upload Artifacts
id: upload-release-asset_1
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./electionguard-admin-artifacts.tar.gz
asset_name: electionguard-admin-artifacts.tar.gz
asset_content_type: application/x-compressed