-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #23 from tobil4sk/gh-actions
[ci] Migrate to github actions
- Loading branch information
Showing
6 changed files
with
60 additions
and
120 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,57 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Haxe | ||
uses: krdlab/setup-haxe@v1 | ||
with: | ||
haxe-version: 4.3.4 | ||
|
||
# we are using this version in order to build vscode-textmate | ||
- name: Setup AWS CLI | ||
run: | | ||
pip install --user awscli | ||
aws --version | ||
- name: Install | ||
run: | | ||
haxelib install all --always --quiet | ||
haxelib list | ||
- name: Setup Pages | ||
id: pages_config | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Generate website | ||
run: | | ||
haxe generate.hxml | ||
env: | ||
GHP_ROOT: ${{steps.pages_config.outputs.base_url}} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
|
||
deploy: | ||
if: github.ref == 'refs/heads/master' | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: github-pages | ||
url: ${{steps.deployment.outputs.page_url}} | ||
steps: | ||
- name: Deploy artifact | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,11 +18,7 @@ class Config { | |
} | ||
}; | ||
|
||
static public var remote = env("GHP_REMOTE", null); // should be in the form of https://[email protected]/account/repo.git | ||
static public var branch = env("GHP_BRANCH", "gh-pages"); | ||
static public var username = env("GHP_USERNAME", null); | ||
static public var email = env("GHP_EMAIL", null); | ||
static public var root = env("GHP_ROOT", null); | ||
static public var root = env("GHP_ROOT", null); | ||
|
||
static public function env(name:String, def:String):String { | ||
return switch(Sys.getEnv(name)) { | ||
|
This file was deleted.
Oops, something went wrong.