Create main.yml

Automate creation of server and client zip files
This commit is contained in:
Lunaresk 2021-12-03 04:36:18 +01:00 committed by GitHub
parent df150b531d
commit ff5a6f3fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Create Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Archive Server
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: "server"
filename: 'server.zip'
- name: Archive Client
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: "client"
filename: 'client.zip'
- name: Release Archive
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "server.zip,client.zip"
token: ${{ secrets.GITHUB_TOKEN }}