Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions (deploy master to gh-pages, commits to DO spaces) #87

Merged
merged 31 commits into from
Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
344fbce
I'm not sure if this will work, time to test
IAmJSD Sep 12, 2019
b87f4ca
Try this
IAmJSD Sep 12, 2019
33fd3a4
This is it oohhhhhhh
IAmJSD Sep 12, 2019
cd83d9f
u wot github
IAmJSD Sep 12, 2019
cf0823b
It'd just be deploy here
IAmJSD Sep 12, 2019
7d48914
That should be dist
IAmJSD Sep 12, 2019
c6c15d4
Test the action with a mock deployment
IAmJSD Sep 12, 2019
49f7d38
Right branch would help
IAmJSD Sep 12, 2019
f23899b
Are quotes not a thing?
IAmJSD Sep 12, 2019
130efd0
No it does need quotes, echo the ref
IAmJSD Sep 12, 2019
bf81dcc
Try this
IAmJSD Sep 12, 2019
78159ac
Make it deployment ready
IAmJSD Sep 12, 2019
092404a
This *should* work
IAmJSD Sep 12, 2019
78c2d6b
Hopefully this works
IAmJSD Sep 12, 2019
7c17f5b
Try this *I reset the bucket env var, this works locally*
IAmJSD Sep 12, 2019
37fc775
Set the ACL
IAmJSD Sep 12, 2019
96aa5d5
Lots of linting
IAmJSD Sep 12, 2019
be9573a
I don't know if this'll work
IAmJSD Sep 12, 2019
9f703b3
Fixes
IAmJSD Sep 12, 2019
da1f746
Try this
IAmJSD Sep 12, 2019
6700b70
Fix the comment code
IAmJSD Sep 12, 2019
5b30f4d
Test using the GH token
IAmJSD Sep 12, 2019
9ba3c41
Fix auth header, Add new line
IAmJSD Sep 12, 2019
320edf9
Add content type
IAmJSD Sep 13, 2019
6a0a2d0
Magic tidying fairy (∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。゚,
MattIPv4 Sep 13, 2019
4d7259e
I'm not keeping this edit, I just want to test this
IAmJSD Sep 13, 2019
f3a3914
Hmmmm that worked, lets test moving that space
IAmJSD Sep 13, 2019
020a4cd
Try this (sorry for all the commits, I cannot recreate locally)
IAmJSD Sep 13, 2019
2cab7af
Merge branch 'master' into gh_actions
IAmJSD Sep 13, 2019
3e7c02e
try this
MattIPv4 Sep 13, 2019
8bcafbb
Merge branch 'master' into gh_actions
IAmJSD Sep 13, 2019
File filter

Filter by extension

Filter by extension


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

on: [push]
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js v12.10.0
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-node@v1
with:
node-version: v12.10.0
- name: npm install, build, and test
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
run: |
npm install
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
npm run build
npm test
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
- name: Deploy
MattIPv4 marked this conversation as resolved.
Show resolved Hide resolved
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@master
IAmJSD marked this conversation as resolved.
Show resolved Hide resolved
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: dist
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.