-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.03 KB
/
workflow.yml
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
name: "JFrog CLI Example"
on: push
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create zip
run: zip -r -q folder.zip folder1
- uses: jfrog/setup-jfrog-cli@v3
env:
# JFrog platform url (for example: https://acme.jfrog.io)
JF_URL: ${{ secrets.JF_URL }}
# JFrog Platform access token
#JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
# Basic authentication credentials
JF_USER: ${{ secrets.JF_USER }}
JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
- name: Verify Artifactory is accessible
run: jf rt ping
- name: Upload to Artifactory
run: jf rt u sample-core-service-api-1.0.2511.zip brianw-generic-local/ --detailed-summary --fail-no-op
- name: Publish build info
run: |
# Collect VCS details from git and add them to the build
jf rt build-add-git
# Publish build info
jf rt bp --detailed-summary