Skip to content

build(TOC): 10.2.7.02 release #43

build(TOC): 10.2.7.02 release

build(TOC): 10.2.7.02 release #43

Workflow file for this run

name: Create Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
steps:
# Do the release checkout
- name: Clone Project
uses: actions/checkout@v1
- name: Get Tag
id: vars
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
echo ::set-output name=oldtag::$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))
# Make a zip file for GitHub
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: HeroDBC-${{ steps.vars.outputs.tag }}.zip
path: ./HeroDBC
exclusions: '*.git* *.pkgmeta *.svn* LICENSE README.md HeroDBC/symlink.bat HeroDBC/symlink.sh'
# Create a release on GitHub
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: HeroDBC
body: |
Changes: https://github.com/herotc/hero-dbc/compare/${{ steps.vars.outputs.oldtag }}...${{ steps.vars.outputs.tag }}
draft: false
prerelease: false
# Upload the zip to the GitHub release
- name: Upload Zip
id: upload-zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./HeroDBC-${{ steps.vars.outputs.tag }}.zip
asset_name: HeroDBC-${{ steps.vars.outputs.tag }}.zip
asset_content_type: application/zip
# Use the BigWigs packager for Wago output
- name: Package and Release
uses: BigWigsMods/packager@v1