Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Added release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xfnty committed Jul 20, 2023
1 parent 693d464 commit 631e5ed
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Release manually
run-name: Release manually

on:
workflow_dispatch:

permissions:
contents: write

jobs:

upload-release:

runs-on: ubuntu-latest
needs: [build-linux, build-windows, build-macos]

steps:
- uses: actions/checkout@v1

- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: uploads

- name: Update release
uses: eine/tip@master
with:
tag: latest
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ./uploads/flappybird-linux.zip ./uploads/flappybird-macos.zip ./uploads/flappybird-windows.zip

build-linux:

runs-on: ubuntu-20.04 # for GLIBC 2.31

steps:
- uses: actions/checkout@v1

- name: Install dependencies
run: sudo apt install -y build-essential git cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev

- name: Configuring CMake
run: make configure

- name: Building
run: make build

- name: Zip linux artifact
run: zip -r flappybird-linux ./bin

- name: Upload linux artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-linux.zip

build-macos:

runs-on: macos-latest

steps:
- uses: actions/checkout@v1

- name: Configuring CMake
run: make cnofigure

- name: Building
run: make build

- name: Zip macos artifact
run: zip -r flappybird-macos ./bin

- name: Upload macos artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-macos.zip

build-windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v1

- name: Configure
run: make configure

- name: Build
run: make build

- name: Zip windows artifact
run: powershell Compress-Archive bin flappybird-windows.zip

- name: Upload windows artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-windows.zip

0 comments on commit 631e5ed

Please sign in to comment.