Skip to content

Commit

Permalink
Merge pull request #23 from tobil4sk/gh-actions
Browse files Browse the repository at this point in the history
[ci] Migrate to github actions
  • Loading branch information
kLabz authored Jul 26, 2024
2 parents 7741e09 + 5116fa0 commit ebb9647
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 120 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
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
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nekovm.org

[![Build Status](https://travis-ci.org/HaxeFoundation/nekovm.org.svg?branch=master)](https://travis-ci.org/HaxeFoundation/nekovm.org)
[![CI](https://github.com/HaxeFoundation/nekovm.org/actions/workflows/main.yml/badge.svg)](https://github.com/HaxeFoundation/nekovm.org/actions/workflows/main.yml)

This is the code base for the <http://nekovm.org> website.

Expand Down Expand Up @@ -32,4 +32,4 @@ The website is now available in the `out/` folder, you can launch it any webserv

## Deploying updates

Any push or merge to the `master` branch will trigger [TravisCI](https://travis-ci.org/HaxeFoundation/nekovm.org) to build and deploy to "nekovm.org".
Any push or merge to the `master` branch will trigger a github actions workflow to build and deploy to "nekovm.org".
2 changes: 0 additions & 2 deletions deploy.hxml

This file was deleted.

6 changes: 1 addition & 5 deletions src/Config.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
84 changes: 0 additions & 84 deletions src/DeployGhPages.hx

This file was deleted.

0 comments on commit ebb9647

Please sign in to comment.