Skip to content

Allow specifying lengths in ms or ticks. #13

Allow specifying lengths in ms or ticks.

Allow specifying lengths in ms or ticks. #13

Workflow file for this run

name: Create Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Get commit hash
id: commit_hash
run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"
- name: Create VERSION file
run: |
echo "${{ github.ref }}" | sed 's/refs\/tags\///' > VERSION
echo "${{ steps.commit_hash.outputs.hash }}" >> VERSION
- name: Archive code
run: |
zip -r ctrlaer.zip . -x ".*"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ctrlaer.zip
asset_name: ctrlaer.zip
asset_content_type: application/zip