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

Use GitHub Actions for Surge push #1467

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7100731
ci(travis): comment out broken surge code
wd15 Nov 28, 2022
6fff91c
build(nix): add new surge nix build
wd15 Nov 28, 2022
6a025ee
ci(actions): new surge implementation
wd15 Nov 28, 2022
01bc1c5
fix bug
wd15 Nov 28, 2022
ea053d8
fix bug
wd15 Nov 28, 2022
19a217c
fix bug
wd15 Nov 28, 2022
a5e43b8
debug
wd15 Nov 28, 2022
09dc777
debug
wd15 Nov 28, 2022
a4857e3
debug
wd15 Nov 28, 2022
c312693
debug
wd15 Nov 28, 2022
4cf881f
debug
wd15 Nov 28, 2022
e7ad621
ci(actions): surge workflow does nothing now
wd15 Nov 29, 2022
32a050f
ci(actions): use more sensible name for workflow
wd15 Nov 30, 2022
d44a662
ci(actions): pull-request -> pull_request
wd15 Nov 30, 2022
a643284
trigger github actions
wd15 Nov 30, 2022
2a34fee
ci(actions): save pull request number
wd15 Nov 30, 2022
fa50d52
trigger github actions
wd15 Nov 30, 2022
3429af1
trigger github actions
wd15 Nov 30, 2022
81822e4
trigger github actions
wd15 Nov 30, 2022
19ed65c
trigger github actions
wd15 Nov 30, 2022
4cf896f
trigger github actions
wd15 Nov 30, 2022
a52bbc8
trigger github actions
wd15 Nov 30, 2022
f676d0f
trigger github actions
wd15 Nov 30, 2022
2a1fc67
trigger actions
wd15 Nov 30, 2022
782207f
trigger actions
wd15 Nov 30, 2022
bd3a00b
trigger actions
wd15 Nov 30, 2022
b059d8d
ci(actions): include login in artifacts
wd15 Nov 30, 2022
0dddd5c
ci(actions): debug
wd15 Nov 30, 2022
2f57ae5
ci(actions): debug
wd15 Nov 30, 2022
10e28e4
ci(actions): debug
wd15 Nov 30, 2022
714ebfb
ci(actions): debug
wd15 Nov 30, 2022
b103dd6
docs: document pushing shell-surge.nix to cachix
wd15 Dec 1, 2022
ad4f9ca
trigger actions
wd15 Dec 1, 2022
ebab313
trigger actions
wd15 Dec 1, 2022
a299e93
trigger actions
wd15 Dec 1, 2022
38cdc53
ci(travis): remove surge push
wd15 Dec 2, 2022
eb35fed
Merge branch 'master' into issue1429-surge
wd15 Dec 2, 2022
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
21 changes: 21 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Launch a workflow to prompt workflows run from master. Required
# as jobs launched via pull-requests do not have access to secrets.
name: pullrequest
on: [push, pull_request]
jobs:
pullrequest:
runs-on: ubuntu-latest
steps:
- name: save-pr
env:
PR_NUMBER: ${{ github.event.number }}
LOGIN: ${{ github.event.pull_request.user.login }}
run: |
mkdir -p ./pr
echo $PR_NUMBER > ./pr/pr_number
echo $LOGIN > ./pr/login
- uses: actions/upload-artifact@v3
with:
name: pr_number
path: pr/
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ before_cache:
install:
- nix-shell --pure --command "echo 'run nix-shell and exit'"
before_script:
- export DOMAIN=random-cat-${TRAVIS_PULL_REQUEST}.surge.sh
- export SURGE_LOGIN="[email protected]"
- export SURGE_TOKEN="fcab9043c16e76c558d16bf6dc380f79"
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
nix-shell --command "
rm -rf ./_site &&
jekyll build --baseurl '' &&
surge --project _site --domain ${DOMAIN} &&
./_apps/data/curl.sh
";
fi;
- nix-shell _apps/data/shell.nix --pure --command "echo 'run nix-shell and exit'"
script:
- nix-shell --command "
Expand Down
8 changes: 7 additions & 1 deletion NIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,10 @@ Then run
$ node2nix --input node-packages.json --output node-packages.nix --composition node.nix

Edit `node.nix` and replace `nodejs-4_x` with `nodejs` in the 5th
line.
line.

### Upload Surge to Cachix

$ nix-env -iA cachix -f https://cachix.org/api/v1/install
$ cachix authtoken <TOKEN>
$ nix_build -E '(import ./shell-surge.nix {}).nativeBuildInputs' | cachix push pfhub-surge