Skip to content

Commit d2dcb9f

Browse files
committed
commit Autobahn|Testsuite results to gh-pages branch
This repaces the DigitalOcean Spaces publish in favor of a GitHub pages setup. The url for the GitHub page should be prettier than the DO space one, plus I bet CI will be faster.
1 parent 93a341f commit d2dcb9f

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,26 @@ jobs:
7373
- name: Add seedling favicon to autobahn report
7474
run: ./autobahn/favicon.sh ./autobahn/reports/index.html
7575

76-
- name: Publish autobahn report to DO Spaces
76+
- name: Checkout gh-pages branch to ./gh-pages
7777
if: github.ref == 'refs/heads/main'
78-
uses: docker://schoenwaldnils/s3-sync-action:0.5.1
78+
uses: actions/checkout@v2
7979
with:
80-
args: --acl public-read --follow-symlinks
81-
env:
82-
AWS_S3_BUCKET: mint-websocket
83-
AWS_ACCESS_KEY_ID: ${{ secrets.DO_SPACES_ACCESS_KEY_ID }}
84-
AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SPACES_SECRET_ACCESS_KEY }}
85-
AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
86-
AWS_REGION: nyc3
87-
SOURCE_DIR: ./autobahn/reports/
88-
DEST_DIR: autobahn
80+
ref: gh-pages
81+
path: ./gh-pages
82+
83+
- name: Move autobahn report results
84+
if: github.ref == 'refs/heads/main'
85+
run: mv ./autobahn/reports/* ./gh-pages/
86+
87+
- name: Commit autobahn report to gh-pages branch
88+
if: github.ref == 'refs/heads/main'
89+
run: |
90+
cd ./gh-pages
91+
git config --local user.email "$(git log --format='%ae' HEAD^!)"
92+
git config --local user.name "$(git log --format='%an' HEAD^!)"
93+
git add *.{html,json}
94+
git commit -m "publish Autobahn|Testsuite report" || true
95+
git push
8996
9097
publish-hex-package:
9198
name: Publish Hex Package ⬆️☁️

0 commit comments

Comments
 (0)