Skip to content

Commit

Permalink
initial attempt github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Oct 28, 2023
1 parent 257da15 commit 89cfe08
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publishRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Release

on:
push:
tags:
- '*.*.*'

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
./gradlew build jsBrowserDistribution \
mkdirs -p mod/Data/SFSE/plugins/sfse_plugin_console_web
cp -r build/dist/js/productionExecutable/* mod/Data/SFSE/plugins/sfse_plugin_console_web \
cp build/dist/js/productionExecutable/index.html mod/Data/SFSE/plugins/sfse_plugin_console_web/starfield-eye.html \
zip -q -r mod/starfield-eye.zip mod/Data \
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: ./mod/starfield-eye.zip
24 changes: 24 additions & 0 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Test
on: push
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew clean build test
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Starfield Eye

[![Build and Test](https://github.com/ManApart/starfield-eye/actions/workflows/runTests.yml/badge.svg)](https://github.com/ManApart/starfield-eye/actions/workflows/runTests.yml)


An Ad free searchable starmap with labels and bookmarks.

Extremely wip at this point.
Expand Down

0 comments on commit 89cfe08

Please sign in to comment.