Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtsunificator committed Oct 3, 2021
1 parent d786e98 commit ba25f55
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 61 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/docs.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 25 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,44 @@
name: "tagged-release"
name: "release"

on:
push:
tags:
- "v*"

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

steps:
- name: git-checkout
uses: actions/checkout@v2

- name: Install all dependencies
run: npm install
- name: npm ci
run: npm ci

- name: Test
- name: npm test
run: npm test

- uses: "marvinpinto/action-automatic-releases@latest"
- name: Automatic release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.PAT_TOKEN }}"
prerelease: false

- name: Generate documentation
run: npm run generate-docs

- name: Push documentation
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "test"

on: push

jobs:
test:
name: "Unit tests"
runs-on: "ubuntu-latest"

steps:
- name: git-checkout
uses: actions/checkout@v2

- name: npm ci
run: npm ci

- name: npm test
run: npm test
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bbcode-parser [![Build Status](https://travis-ci.com/thoughtsunificator/bbcode-parser.svg?branch=master)](https://travis-ci.com/thoughtsunificator/bbcode-parser)
# bbcode-parser

bbcode-parser is a JavaScript implementation of the lightweight markup language [BBCode](https://en.wikipedia.org/wiki/BBCode).

Expand Down

0 comments on commit ba25f55

Please sign in to comment.