Skip to content

Commit

Permalink
fix(GoDaddy): use @ as name when subdomain is missing (jeessy2#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterLemons2k authored and Bonnie-Ran committed Jul 15, 2023
1 parent b66340e commit 10acd5e
Show file tree
Hide file tree
Showing 9 changed files with 230 additions and 178 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/changelog.yml
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}}
50 changes: 0 additions & 50 deletions .github/workflows/docker-image.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/dockerhub-description.yml

This file was deleted.

74 changes: 31 additions & 43 deletions .github/workflows/release.yml
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/*
24 changes: 0 additions & 24 deletions .github/workflows/stale.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit 10acd5e

Please sign in to comment.