Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Chucheng <me@wangchucheng.com>2022-01-27 21:08:13 +0300
committerWANG Chucheng <me@wangchucheng.com>2022-01-27 21:08:13 +0300
commitf1f3eb1caa23c28d0083fbfd12d96b3e98a840a0 (patch)
tree4ce3d7bd59c19458d18577190aed6850f173f46c
parent8771511cfe2c71b990aa567833b79f19e6ecf5ce (diff)
chore: add release action
-rw-r--r--.github/FUNDING.yaml (renamed from .github/FUNDING.yml)0
-rw-r--r--.github/ISSUE_TEMPLATE/config.yaml (renamed from .github/ISSUE_TEMPLATE/config.yml)0
-rw-r--r--.github/workflows/codeql-analysis.yaml (renamed from .github/workflows/codeql-analysis.yml)0
-rw-r--r--.github/workflows/git-repo-sync.yaml (renamed from .github/workflows/git-repo-sync.yml)0
-rw-r--r--.github/workflows/release.yaml73
5 files changed, 73 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yaml
index 53c2246..53c2246 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yaml
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yaml
index afff6b2..afff6b2 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yaml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yaml
index f0fab96..f0fab96 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yaml
diff --git a/.github/workflows/git-repo-sync.yml b/.github/workflows/git-repo-sync.yaml
index d5eeade..d5eeade 100644
--- a/.github/workflows/git-repo-sync.yml
+++ b/.github/workflows/git-repo-sync.yaml
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..176a684
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,73 @@
+name: release
+
+on:
+ push:
+ tags:
+ - "v*.*.*"
+
+jobs:
+ release-eureka:
+ runs-on: ubuntu-latest
+ name: Release Eureka
+ steps:
+ - name: Checkout Eureka
+ uses: actions/checkout@v2
+ - name: Release Eureka
+ uses: softprops/action-gh-release@v1
+ with:
+ generate_release_notes: true
+ release-starters:
+ runs-on: ubuntu-latest
+ name: Release Starters
+ steps:
+ - name: Checkout Eureka
+ uses: actions/checkout@v2
+ with:
+ path: 'eureka'
+ - name: Checkout Starters
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ repository: wangchucheng/hugo-eureka-starters
+ path: 'starters'
+ - name: Delete Old Folders
+ run: rm -rf starters/config starters/content
+ - name: Copy New Folders
+ run: |
+ cp -r eureka/exampleSite/config/. starters/config
+ cp -r eureka/exampleSite/content/. starters/content
+ - name: Setup Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: '^1.13.1'
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ - name: Update Hugo Modules
+ run: |
+ cd starters
+ hugo mod get -u
+ hugo mod tidy
+ - name: Commit
+ run: |
+ cd starters
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add . && git commit -m "chore: upgrade to Eureka ${GITHUB_REF#refs/*/v}"
+ git config --unset-all http.https://github.com/.extraheader # https://stackoverflow.com/a/69979203
+ - name: Push to Starters
+ uses: ad-m/github-push-action@v0.6.0
+ with:
+ github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
+ directory: starters
+ repository: wangchucheng/hugo-eureka-starters
+ branch: monolingual
+ - name: Release Starters
+ uses: softprops/action-gh-release@v1
+ with:
+ repository: wangchucheng/hugo-eureka-starters
+ generate_release_notes: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
+ \ No newline at end of file