Added github action for release.

This commit is contained in:
Daniel Schmidt 2023-05-09 18:42:39 +02:00
parent 0f9987d305
commit eb352f089e
5 changed files with 31 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 456 KiB

After

Width:  |  Height:  |  Size: 456 KiB

View File

Before

Width:  |  Height:  |  Size: 498 KiB

After

Width:  |  Height:  |  Size: 498 KiB

28
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: "./cmd/game"
binary_name: "end_of_eden"
extra_files: "./assets/"
goos: darwin
goarch: arm64

View File

@ -1,5 +1,5 @@
<p align="center">
<img align="center" src="./github/header.png" />
<img align="center" src=".github/header.png" />
</p>
[![Discord](https://img.shields.io/discord/1099310842564059168?label=discord)](https://discord.gg/XpDvfvVuB2)
@ -14,8 +14,8 @@
# Screenshots
![Screenshot](./github/screenshot.png)
![Screenshot](./github/screenshot_merchant.png)
![Screenshot](.github/screenshot.png)
![Screenshot](.github/screenshot_merchant.png)
# How to play