Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
feat: moves godocs syndicate right to the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wregulski committed Aug 30, 2023
1 parent 11db2c2 commit fd85107
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@ jobs:
syndicate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Task
- name: Install cURL
run: sudo apt-get install curl -y
- name: Syndicate to GoDocs
run: |
curl -sL https://taskfile.dev/install.sh | sh
sudo mv ./bin/task /usr/local/bin
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Sync with GoDocs using Taskfile
run: task godocs
env:
REPO: ${{ github.repository }}
VERSION_SHORT: ${{ github.ref }}
echo "syndicating to GoDocs..."
curl "https://proxy.golang.org/github.com/${{ github.repository }}/v/${{ github.ref }}/info"
6 changes: 0 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ tasks:
desc: Run lint
cmds:
- golangci-lint run

godocs:
desc: Sync the latest tag with GoDocs
cmds:
- echo "syndicating to GoDocs..."
- curl "https://proxy.golang.org/github.com/$REPO/v/$VERSION_SHORT.info"

0 comments on commit fd85107

Please sign in to comment.