Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Blad3Mak3r authored May 12, 2022
1 parent 889dcf8 commit 74872c0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 38 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/compile-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Compile on Release

on:
release:
types: [ published ]

env:
BUILD_NUMBER: ${{ github.run_number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}

permissions:
contents: write

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Build executables
run: ./compile.sh

- name: Publish executables to GitHub Release
uses: softprops/action-gh-release@v1
if: startswith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: bin/*
38 changes: 0 additions & 38 deletions .github/workflows/deno-compile.yml

This file was deleted.

0 comments on commit 74872c0

Please sign in to comment.