Skip to content

Commit

Permalink
add GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Dec 22, 2021
1 parent c0a3fa8 commit 543451d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 106 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/artifacts.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/test-build-linux.yml

This file was deleted.

35 changes: 35 additions & 0 deletions build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build release

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Checkout code
id: checkout-code
uses: actions/checkout@v2
with:
submodules: recursive

- name: Build release
id: build-release
uses: Joshua-Ashton/arch-mingw-github-action@v5
with:
command: |
export VERSION_NAME="2.5"
./package-release.sh ${VERSION_NAME} build --no-package
echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV
mv build/vkd3d-proton-${VERSION_NAME} vkd3d-proton-${VERSION_NAME}
tar zcvf vkd3d-proton-${VERSION_NAME}.tar.gz vkd3d-proton-${VERSION_NAME}
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: false
prerelease: false
automatic_release_tag: "vkd3d-proton-${{ env.VERSION_NAME }}"
title: "vkd3d-proton-${{ env.VERSION_NAME }}"
files: "vkd3d-proton-${{ env.VERSION_NAME }}.tar.gz"

0 comments on commit 543451d

Please sign in to comment.