Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
bbd072d4
Commit
bbd072d4
authored
Jan 21, 2020
by
THofstee
Committed by
Zachary Snow
Jan 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release workflow
parent
17e17ebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
2 deletions
+56
-2
.github/workflows/test.yaml
+56
-2
No files found.
.github/workflows/test.yaml
View file @
bbd072d4
name
:
Test
on
:
push
name
:
Build and Test
on
:
push
:
release
:
types
:
-
created
jobs
:
test
:
runs-on
:
${{ matrix.os }}
strategy
:
...
...
@@ -36,3 +41,52 @@ jobs:
run
:
|
export PATH="$PATH:$HOME/.local/bin"
make test
-
name
:
Prepare Artifact
if
:
github.event_name == 'release'
run
:
cp LICENSE NOTICE README.md bin
-
name
:
Upload Artifact
if
:
github.event_name == 'release'
uses
:
actions/upload-artifact@v1
with
:
name
:
${{ runner.os }}
path
:
bin
release
:
runs-on
:
ubuntu-latest
needs
:
test
if
:
github.event_name == 'release'
steps
:
-
run
:
sudo apt-get install -y tree
-
name
:
Download Linux Artifact
uses
:
actions/download-artifact@v1
with
:
name
:
Linux
path
:
sv2v-Linux
-
name
:
Download MacOS Artifact
uses
:
actions/download-artifact@v1
with
:
name
:
macOS
path
:
sv2v-macOS
-
name
:
Create ZIPs
run
:
|
chmod +x */sv2v
zip -r sv2v-Linux ./sv2v-Linux
zip -r sv2v-macOS ./sv2v-macOS
-
name
:
Upload Linux Release Asset
uses
:
actions/upload-release-asset@v1.0.1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
upload_url
:
${{ github.event.release.upload_url }}
asset_path
:
./sv2v-Linux.zip
asset_name
:
sv2v-Linux.zip
asset_content_type
:
application/zip
-
name
:
Upload MacOS Release Asset
uses
:
actions/upload-release-asset@v1.0.1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
upload_url
:
${{ github.event.release.upload_url }}
asset_path
:
./sv2v-macOS.zip
asset_name
:
sv2v-macOS.zip
asset_content_type
:
application/zip
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment