Skip to content

Commit

Permalink
Still trying to get GH release action working.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Jan 16, 2023
1 parent 219294e commit 5a45e7e
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Makefile CI
on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:
branches: [ master ]

Expand Down Expand Up @@ -32,14 +33,6 @@ jobs:
name: pdlua-ubuntu
path: build

- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: pdlua-ubuntu

macos-build:

runs-on: macos-latest
Expand Down Expand Up @@ -67,14 +60,6 @@ jobs:
name: pdlua-macos
path: build

- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: pdlua-macos

windows-build:

runs-on: windows-2022
Expand Down Expand Up @@ -104,10 +89,21 @@ jobs:
name: pdlua-windows
path: build

# Big thanks to @tomara-x and @timothyschoen for showing me how to do this! -ag

release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [ubuntu-build, macos-build, windows-build]
steps:
- uses: actions/download-artifact@v3
- name: ziptie
run: |
mkdir dist
for x in pdlua-*; do (cd $x && zip -r ../dist/$x.zip pdlua/); done
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: pdlua-windows
files: dist/*.zip

0 comments on commit 5a45e7e

Please sign in to comment.