Skip to content

Commit

Permalink
Merge pull request #95 from sandstreamdev/enable-automatic-deployment…
Browse files Browse the repository at this point in the history
…s-and-update-build-env

Enable automatic deployments and update build ENV
  • Loading branch information
przemyslawzalewski authored Apr 23, 2024
2 parents 8fc4143 + 9e82300 commit 10423a8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy with gh-pages
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install and build
run: |
npm ci
npm run build
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 3 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

node-version: [20.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build, and test
Expand All @@ -23,8 +21,3 @@ jobs:
npm test
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./.coverage/clover.xml
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.2
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# std

[![Greenkeeper badge](https://badges.greenkeeper.io/sandstreamdev/std.svg)](https://greenkeeper.io/)
[![Codecov](https://codecov.io/gh/sandstreamdev/std/branch/master/graph/badge.svg)](https://codecov.io/gh/sandstreamdev/std)
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors)

## Installation
Expand Down

0 comments on commit 10423a8

Please sign in to comment.