make complete publish script #2
All checks were successful
/ publish_password (push) Successful in 6m40s

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-08-10 14:11:58 +02:00
commit f9ce04a257
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
4 changed files with 47 additions and 25 deletions

View file

@ -4,15 +4,24 @@ on:
push:
jobs:
publish:
publish_password:
runs-on: docker
steps:
- run: echo All good!
- run: apt-get update && apt-get install -y make
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: "publish_password: Download packages"
run: apt-get update && apt-get install -y make
- name: "publish_password: Checkout repo"
uses: actions/checkout@v4
- name: "publish_password: Setup golang"
uses: actions/setup-go@v5
with:
go-version: "1.21"
- run: ls -la
- run: make build_password
- run: make publish_password
- name: "publish_password: build binary"
run: make build_password
- name: "publish_password: publish binary"
run: echo "${PASSWORD}" && bash ./scripts/publish_packages.sh "./bin" "password"
env:
LOGIN: ${{ forge.ACTOR }}
PASSWORD: ${{ secrets.PACKAGE }}
SERVER_URL: ${{ forge.SERVER_URL }}
OWNER: ${{ forge.REPOSITORY_OWNER }}
VER: latest

View file

@ -1,9 +1,9 @@
on:
pull_request:
types: [opened, synchronize, closed]
types: [opened, closed]
jobs:
test:
validate_password:
runs-on: docker
steps:
- run: echo All good!