Skip to content

Merge pull request #312 from davidgiven/dtrg-windowsd #6

Merge pull request #312 from davidgiven/dtrg-windowsd

Merge pull request #312 from davidgiven/dtrg-windowsd #6

Workflow file for this run

name: Autorelease
concurrency:
group: environment-release-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches:
- "default"
jobs:
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
make
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-lua
mingw-w64-ucrt-x86_64-nsis
ninja
bison
flex
zip
git
- uses: actions/checkout@v3
- name: build
run: |
make LDFLAGS="-s -static" CFLAGS=-Os
- name: package
run: |
make ack-setup.exe
- name: date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: tag
run: |
git config user.name "davidgiven"
git config user.email "[email protected]"
git tag -f dev
git push -f origin dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: delete-old-assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: dev
assets: |
ack-setup.exe
fail-if-no-assets: false
- name: release
uses: softprops/action-gh-release@v1
with:
name: Nightly development build ${{ env.RELEASE_DATE }}
files: |
ack-setup.exe
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}