mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-08-17 22:01:13 +03:00
Compare commits
3 Commits
1a3502b71b
...
ca14e8247c
Author | SHA1 | Date | |
---|---|---|---|
ca14e8247c | |||
1f5573cee8 | |||
305f6c5642 |
49
.github/workflows/hugo.yml
vendored
49
.github/workflows/hugo.yml
vendored
@@ -60,52 +60,3 @@ jobs:
|
||||
--gc \
|
||||
--minify \
|
||||
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||
- name: Change color
|
||||
run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css
|
||||
- name: Change URI
|
||||
run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} +
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./public
|
||||
|
||||
# Deployment job
|
||||
deploy-page:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
deploy-neocities:
|
||||
environment:
|
||||
name: neocities
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: .
|
||||
- name: Create directory
|
||||
run: mkdir public
|
||||
- name: Unapacking artifact
|
||||
run: tar xf github-pages/artifact.tar -C public
|
||||
- name: Change URI
|
||||
run: find public -type f -exec sed -i 's/\/\/fruworg.github.io/\/\/fruworg.neocities.org/g' {} +
|
||||
- name: Rename 404 page
|
||||
run: mv public/404.html public/not_found.html
|
||||
- name: Change color
|
||||
run: sed -i 's/rebeccapurple/mediumseagreen/g' public/css/main.*.css
|
||||
- name: Delete id_rsa.pub
|
||||
run: rm public/id_rsa.pub
|
||||
- name: Deploy to Neocities
|
||||
uses: bcomnes/deploy-to-neocities@v1
|
||||
with:
|
||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
cleanup: true
|
||||
dist_dir: public
|
||||
|
@@ -1,2 +1,2 @@
|
||||
# Небольшой сайтик на `HUGO`
|
||||
Зеркала: [раз](//fruw.org), [два](//fruworg.neocities.org), [три](//fruworg.pages.dev) и [четыре](//fruworg.github.io).
|
||||
[Yay!](//fruw.org)
|
||||
|
@@ -4,4 +4,4 @@
|
||||
██▌▐▀▐█▄▄▌▐█▌▐▌▐█▌▐▌▐█▌.▐▌
|
||||
▀▀▀ · ▀▀▀ .▀▀▀ .▀▀▀ ▀█▄▀▪</ascii>
|
||||
|
||||
<a href="//github.com/fruworg/fruworg.github.io">opensource, js&cookie free</a></pre>
|
||||
<a href="//github.com/fruworg/fruw.org">opensource, js&cookie free</a></pre>
|
||||
|
Reference in New Issue
Block a user