Compare commits
2 Commits
b31d0f144a
...
80ecfa6e0f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80ecfa6e0f
|
||
|
|
49a4d21d49
|
@@ -43,7 +43,7 @@ jobs:
|
||||
path: build/
|
||||
retention-days: 7
|
||||
|
||||
#- name: Deploy to statichost.eu
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
# run: |
|
||||
# curl -XPOST https://builder.statichost.eu/repomaa-cv
|
||||
- name: Deploy to statichost.eu
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
curl -XPOST https://builder.statichost.eu/repomaa-cv
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
image: alpine
|
||||
command: |
|
||||
apk add --no-cache curl jq unzip &&
|
||||
curl -s -H "Authorization: token $GITHUB_TOKEN" \
|
||||
"https://api.github.com/repos/repomaa/cv/actions/artifacts?per_page=1" | \
|
||||
jq -r '.artifacts[0].archive_download_url' | \
|
||||
xargs -I {} curl -s -L -H "Authorization: token $GITHUB_TOKEN" -o artifact.zip {} &&
|
||||
curl -s 'https://git.freun.dev/api/v1/repos/repomaa/cv/actions/artifacts?name=build' | \
|
||||
jq -r '.artifacts[-1].archive_download_url' | \
|
||||
xargs -I {} curl -s -L -o artifact.zip {} &&
|
||||
unzip -o artifact.zip -d public
|
||||
public: public
|
||||
domains:
|
||||
|
||||
Reference in New Issue
Block a user