-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6356f5c
commit fa4a86a
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, '[build skip]')" | ||
name: "Pre Release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
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 | ||
env: | ||
CFAPIKEY: ${{ secrets.CFAPIKEY }} | ||
- name: Automatic Releases | ||
uses: marvinpinto/action-automatic-releases@latest | ||
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 |