make complete publish script #2
All checks were successful
/ publish_password (push) Successful in 6m40s
All checks were successful
/ publish_password (push) Successful in 6m40s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
3e6f106e81
commit
f9ce04a257
4 changed files with 47 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue