Skip to content

Commit 027fc7b

Browse files
committed
test action
1 parent 3c1327d commit 027fc7b

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/yolo.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 🚀 release and deploy sift
2+
on:
3+
workflow_dispatch
4+
5+
jobs:
6+
build:
7+
name: test repo commit
8+
runs-on: ubuntu-latest
9+
if: github.ref == 'refs/heads/dev'
10+
steps:
11+
- name: checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: setup jdk
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '17'
18+
distribution: 'corretto'
19+
cache: 'maven'
20+
server-id: 'sonatype-nexus'
21+
server-username: DEPLOY_USERNAME
22+
server-password: DEPLOY_PASSWORD
23+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
24+
gpg-passphrase: GPG_PASSPHRASE
25+
26+
- name: release and deploy
27+
env:
28+
DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
29+
DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
30+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
31+
run: |
32+
mkdir ~/.ssh && chmod 700 ~/.ssh
33+
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
34+
echo "${{ secrets.SSH_KEY_PUB }}" > ~/.ssh/id_ed25519.pub
35+
chmod 400 ~/.ssh/id_ed25519*
36+
37+
git config user.name github-actions
38+
git config user.email github-actions@github.com
39+
40+
echo "hello, world" >> yolo.txt
41+
git add yolo.txt
42+
git commit -m "testing"
43+
git push
44+

0 commit comments

Comments
 (0)