Skip to content

Commit

Permalink
Github Actions from GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
htmlcsjs authored Oct 17, 2021
1 parent 1c19cc3 commit 64c5d46
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

name: Build

on: [push]

jobs:
build:

runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Declare some variables
id: vars
shell: bash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short $GITHUB_SHA)"
- name: Install requests
run: |
pip install requests
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '8'
- run: java -version
- name: Run Build
run: |
python build/main.py
- name: Automatic Releases
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: ${{ steps.vars.outputs.sha_short }}

files: |
buildOut/client.zip
buildOut/server.zip
buildOut/modlist.html

0 comments on commit 64c5d46

Please sign in to comment.