-
Notifications
You must be signed in to change notification settings - Fork 836
59 lines (57 loc) · 1.54 KB
/
build-action.yml
File metadata and controls
59 lines (57 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build Action
on:
workflow_dispatch:
push:
paths:
- action/**
- action.yml
branches:
- main
- gha
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.20.4
- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9.12.3
run_install: true
- name: Build Action
working-directory: ./action
run: pnpm build
- uses: EndBug/add-and-commit@v9
with:
add: "-f ./action/build"
message: "fix(action): build"
# docker:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}
# password: ${{ secrets.DOCKERHUB_LINGODOTDEV_PASSWORD }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Build Docker image and push
# uses: docker/build-push-action@v6
# with:
# push: true
# platforms: linux/amd64
# context: ./action
# file: ./action/Dockerfile
# tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest