Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Paco8 authored Mar 15, 2023
1 parent ced9a7b commit 1bc5ddc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build package

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Install sources
uses: actions/checkout@v3

- name: Build package
run: make

- name: Create artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: ./*.zip

- name: Upload package to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./*.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 1bc5ddc

Please # to comment.