-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try to setup backup site * name actions * test subsequent deploy * fix deploy triggers * build backup too
- Loading branch information
1 parent
0bdbd79
commit e47420b
Showing
6 changed files
with
143 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
on: # [pull_request] | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Deploy Backup | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.92.1' | ||
|
||
- name: Build | ||
run: hugo --destination dist/ --minify --config=backup_config.toml | ||
|
||
- name: Upload built blog | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: website | ||
path: dist/ | ||
retention-days: 1 | ||
|
||
deploy: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- id: auth | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: '${{ secrets.GOOGLE_CLOUD_CREDENTIALS }}' | ||
|
||
# Setup gcloud CLI | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
- name: Download built artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: website | ||
path: dist/ | ||
|
||
- name: Delete website | ||
run: gsutil -m rm -a gs://verygoodsoftwarenotvirus.blog/** | ||
|
||
- name: Deploy website | ||
run: gsutil -m cp -r dist/* gs://verygoodsoftwarenotvirus.blog/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
baseURL = "https://verygoodsoftwarenotvirus.blog/" | ||
languageCode = "en-us" | ||
title = "Very Good Software, Not Virus" | ||
theme = "terminal" | ||
|
||
[params] | ||
# ["orange", "blue", "red", "green", "pink"] | ||
themeColor = "orange" | ||
|
||
# if you set this to 0, only submenu trigger will be visible | ||
showMenuItems = 2 | ||
|
||
# show selector to switch language | ||
showLanguageSelector = false | ||
|
||
# set theme to full screen width | ||
fullWidthTheme = false | ||
|
||
# center theme with default width | ||
centerTheme = true | ||
|
||
# if your resource directory contains an image called `cover.(jpg|png|webp)`, | ||
# then the file will be used as a cover automatically. | ||
# With this option you don't have to put the `cover` param in a front-matter. | ||
autoCover = true | ||
|
||
# set post to show the last updated | ||
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated | ||
showLastUpdated = true | ||
|
||
# set a custom favicon (default is a `themeColor` square) | ||
# favicon = "favicon.ico" | ||
|
||
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author | ||
# updatedDatePrefix = "Updated" | ||
|
||
# set all headings to their default size (depending on browser settings) | ||
# oneHeadingSize = true # default | ||
|
||
# whether to show a page's estimated reading time | ||
# readingTime = true # default | ||
|
||
# whether to show a table of contents | ||
# can be overridden in a page's front-matter | ||
# Toc = false # default | ||
|
||
# set title for the table of contents | ||
# can be overridden in a page's front-matter | ||
# TocTitle = "Table of Contents" # default | ||
|
||
[languages] | ||
[languages.en] | ||
languageName = "English" | ||
title = "Very Good Software, Not Virus" | ||
subtitle = "a lowly software developer's blog" | ||
owner = "" | ||
keywords = "" | ||
copyright = "" | ||
menuMore = "Show more" | ||
readMore = "Read more" | ||
readOtherPosts = "Read other posts" | ||
newerPosts = "Newer posts" | ||
olderPosts = "Older posts" | ||
missingContentMessage = "Page not found..." | ||
missingBackButtonLabel = "Back to home page" | ||
|
||
[languages.en.params.logo] | ||
logoText = "Terminal" | ||
logoHomeLink = "/" | ||
|
||
# [languages.en.menu] | ||
# [[languages.en.menu.main]] | ||
# identifier = "about" | ||
# name = "About" | ||
# url = "/about" | ||
|
||
[markup.goldmark.renderer] | ||
unsafe = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters