Skip to content

Commit

Permalink
Create release_latest.yml (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
scopeInfinity authored Dec 15, 2020
1 parent 7153dcd commit 6030f2d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/release_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
branches:
- master

jobs:
release_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Prerequisite
run: sudo bash before_install.sh

- name: make test
run: make test

- name: make
run: make

- name: Create Latest Release
id: create_release_latest
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "latest"
release_name: Release Latest
draft: false
prerelease: false
commitish: ${{ github.sha }}

- name: Upload Release Image
uses: actions/upload-release-asset@v1
id: upload-release-image
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/image.vmdk
asset_name: image.vmdk
asset_content_type: application/x-vmdk

- name: Upload Release Test Screenshots
uses: actions/upload-release-asset@v1
id: upload-release-test-screenshots
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/test_screenshots.zip
asset_name: test_screenshots.zip
asset_content_type: application/zip

0 comments on commit 6030f2d

Please sign in to comment.