forked from jeessy2/ddns-go
-
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.
fix(GoDaddy): use
@
as name when subdomain is missing (jeessy2#770)
- Loading branch information
1 parent
b66340e
commit 10acd5e
Showing
9 changed files
with
230 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: auto changelog | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
changelog: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,59 +1,47 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
permissions: | ||
contents: write | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
goreleaser: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
release: | ||
strategy: | ||
matrix: | ||
platform: [ ubuntu-latest ] | ||
go-version: [ '1.20' ] | ||
name: Release | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Prerelease | ||
uses: irongut/EditRelease@v1.2.0 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: ${{ github.event.release.id }} | ||
prerelease: true | ||
|
||
- name: Set up Go | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
homebrew: | ||
needs: goreleaser | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/homebrew/ubuntu22.04:master | ||
steps: | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
test-bot: false | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git user | ||
uses: Homebrew/actions/git-user-config@master | ||
- name: Build | ||
run: | | ||
bash build.sh release | ||
- name: Tap formulae repo | ||
run: brew tap ivaquero/chinese | ||
- name: Release latest | ||
uses: irongut/EditRelease@v1.2.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: ${{ github.event.release.id }} | ||
prerelease: false | ||
|
||
- name: Bump formulae | ||
uses: Homebrew/actions/bump-formulae@master | ||
- name: Upload assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
# Custom GitHub access token with only the 'workflow' scope enabled | ||
token: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }} | ||
formulae: ddns-go ivaquero/chinese/ddns-go | ||
files: build/compress/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.