Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Install language server
run: ./gradlew installServer
- name: Change directory
run: cd org.metafacture.flux.vsc/
- name: Install flux extension
run: npm install
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Build and Deploy

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
- name: Set up vsce
run: npm install -g vsce
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build
./gradlew installServer
- name: Create flux extension
working-directory: org.metafacture.flux.vsc/
run: |
npm install
vsce package -o flux.vsix
- name: Pushes vsix to GitHub Pages
uses: dmnemec/copy_file_to_another_repo_action@v1.0.4
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'org.metafacture.flux.vsc/flux.vsix'
destination_repo: 'metafacture/metafacture.github.io'
destination_branch: main
destination_folder: 'extensions'
user_email: '${{ github.actor }}@users.noreply.github.com'
user_name: '${{ github.actor }}'
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.