Skip to content

Commit

Permalink
Try another workflow system
Browse files Browse the repository at this point in the history
  • Loading branch information
Soitora committed Jun 24, 2020
1 parent 47ec10d commit fdaeaac
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "pre-release"

on:
push:
branches:
- "master"

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v1"
- name: "Setup Node.js"
uses: "actions/setup-node@v1"
with:
node-version: "12.x"

- name: "Install dependencies"
run: |
npm ci
- name: "Build"
run: |
npm run build
env:
CI: true
USERSCRIPTER_MODE: production
USERSCRIPTER_VERBOSE: true

- name: "Create GitHub pre-release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
LICENSE
animemusic-scraper.exe
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
name: "Release"
name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
release:
name: "Release"
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v1"
- name: "Setup Node.js"
uses: "actions/setup-node@v1"
with:
node-version: "12.x"

- name: "Install dependencies"
run: |
npm ci
- name: "Build"
run: |
npm run build
env:
CI: true
USERSCRIPTER_MODE: production
USERSCRIPTER_VERBOSE: true

- name: "Create GitHub release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
animemusic-scraper.exe
LICENSE
animemusic-scraper.exe

0 comments on commit fdaeaac

Please sign in to comment.