feat: update all GitHub Actions workflows from Node.js to Go
Replace Node.js setup, npm install, and node/npm commands with Go setup, go build, and the new awesome-docker CLI binary in all four workflow files: pull_request, broken_links, health_report, and deploy-pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
.github/workflows/deploy-pages.yml
vendored
18
.github/workflows/deploy-pages.yml
vendored
@@ -20,22 +20,20 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6.0.2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # ratchet:actions/setup-node@v6.2.0
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
go-version: "1.22"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Build CLI
|
||||
run: go build -o awesome-docker ./cmd/awesome-docker
|
||||
|
||||
- name: Build website
|
||||
run: npm run build
|
||||
run: ./awesome-docker build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # ratchet:actions/upload-pages-artifact@v4
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: ./website
|
||||
|
||||
@@ -48,4 +46,4 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # ratchet:actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
Reference in New Issue
Block a user