-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from defold/site-rebuild-workflow
Added site rebuild workflow
- Loading branch information
Showing
3 changed files
with
98 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,3 @@ | ||
github: defold | ||
patreon: Defold | ||
custom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NBNBHTUW4GS4C'] |
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,76 @@ | ||
name: Build with bob | ||
|
||
on: | ||
push: | ||
pull_request_target: | ||
schedule: | ||
# nightly at 06:00 on the 1st and 15th | ||
- cron: 0 6 1,15 * * | ||
|
||
env: | ||
VERSION_FILENAME: 'info.json' | ||
BUILD_SERVER: 'https://build.defold.com' | ||
|
||
jobs: | ||
build_with_bob: | ||
strategy: | ||
matrix: | ||
platform: [armv7-android, x86_64-linux, x86_64-win32, x86-win32, js-web] | ||
runs-on: ubuntu-latest | ||
|
||
name: Build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11.0.2' | ||
|
||
- name: Get Defold version | ||
run: | | ||
TMPVAR=`curl -s http://d.defold.com/stable/${{env.VERSION_FILENAME}} | jq -r '.sha1'` | ||
echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV | ||
echo "Found version ${TMPVAR}" | ||
- name: Download bob.jar | ||
run: | | ||
wget -q http://d.defold.com/archive/stable/${{env.DEFOLD_VERSION}}/bob/bob.jar | ||
java -jar bob.jar --version | ||
- name: Resolve libraries | ||
run: java -jar bob.jar resolve --email [email protected] --auth 123456 | ||
- name: Build | ||
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} | ||
- name: Bundle | ||
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle | ||
|
||
# macOS is not technically needed for building, but we want to test bundling as well, since we're also testing the manifest merging | ||
build_with_bob_macos: | ||
strategy: | ||
matrix: | ||
platform: [armv7-darwin, x86_64-darwin] | ||
runs-on: macOS-latest | ||
|
||
name: Build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11.0.2' | ||
|
||
- name: Get Defold version | ||
run: | | ||
TMPVAR=`curl -s http://d.defold.com/stable/${{env.VERSION_FILENAME}} | jq -r '.sha1'` | ||
echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV | ||
echo "Found version ${TMPVAR}" | ||
- name: Download bob.jar | ||
run: | | ||
wget -q http://d.defold.com/archive/stable/${{env.DEFOLD_VERSION}}/bob/bob.jar | ||
java -jar bob.jar --version | ||
- name: Resolve libraries | ||
run: java -jar bob.jar resolve --email [email protected] --auth 123456 | ||
- name: Build | ||
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} | ||
- name: Bundle | ||
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle |
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,19 @@ | ||
name: Trigger site rebuild | ||
|
||
on: [push] | ||
|
||
jobs: | ||
site-rebuild: | ||
runs-on: ubuntu-latest | ||
|
||
steps: [ | ||
{ | ||
name: 'Repository dispatch', | ||
uses: defold/[email protected], | ||
with: { | ||
repo: 'defold/defold.github.io', | ||
token: '${{ secrets.SERVICES_GITHUB_TOKEN }}', | ||
user: '[email protected]', | ||
action: 'extension-spine' | ||
} | ||
}] |