6
0

Initial workflows

This commit is contained in:
Jon Michael Aanes 2023-09-27 11:32:22 +02:00
commit 3e10b92c36
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,45 @@
name: LÖVE Game
on:
workflow_call:
inputs:
secrets:
PIPELINE_WORKER_SSH_KEY:
required: true
PIPELINE_WORKER_KNOWN_HOSTS:
required: true
PIPELINE_WORKER_USERNAME:
required: true
jobs:
Package:
runs-on: ubuntu-latest
steps:
- run: apt-get update
- run: apt-get install -y fish luajit optipng ffmpeg zip rsync
- name: Setting up SSH
uses: https://github.com/shimataro/ssh-key-action@v2.5.1
with:
key: ${{ secrets.PIPELINE_WORKER_SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }}
config: |
Host gitfub
HostName gitfub.space
User ${{ secrets.PIPELINE_WORKER_USERNAME }}
- name: Check out repository
uses: actions/checkout@v3
- name: Creating binaries
run: fish ${{ github.workspace }}/assemble release
- name: Uploading artifacts (love)
uses: actions/upload-artifact@v3
with:
name: "${{ github.event.repository.name }}.love"
path: "${{ github.workspace }}/bin/*.love"
if-no-files-found: error
- name: Uploading artifacts (win64)
uses: actions/upload-artifact@v3
with:
name: "${{ github.event.repository.name }}-win64.zip"
path: "${{ github.workspace }}/bin/*-win64.zip"
if-no-files-found: error

16
.gitea/workflows/lua.yaml Normal file
View File

@ -0,0 +1,16 @@
name: Lua Project
on:
workflow_call:
inputs:
secrets:
jobs:
Static-Analysis:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Luacheck linter
uses: https://github.com/lunarmodules/luacheck@v1.1.1