Skip to content

Commit

Permalink
trigger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Nov 16, 2023
1 parent ec41c84 commit 4efb662
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
name: Build and Publish

on:
push:
branches: [ "main" ]
branches:
- main
pull_request:
branches: [ "main" ]

branches:
- main
jobs:
build-and-publish:
name: Buid and Publish CS3APIS
Expand All @@ -15,17 +16,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: setup-ssh
env:
SSH_KEY: ${{ secrets.ssh_key}}
run: |
mkdir /root/.ssh
python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()"
shasum /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa
stat /root/.ssh/id_rsa
touch /root/.ssh/known_hosts
chmod 400 /root/.ssh/known_hosts
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
cat /root/.ssh/id_rsa
env:
- SSH_KEY: ${{ secrets.ssh_key}}
run: >
mkdir /root/.ssh
python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()"
shasum /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa
stat /root/.ssh/id_rsa
touch /root/.ssh/known_hosts
chmod 400 /root/.ssh/known_hosts
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
cat /root/.ssh/id_rsa
- name: build-and-publish
run: cs3apis-build

1 change: 1 addition & 0 deletions 1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
1
1
1
1

0 comments on commit 4efb662

Please sign in to comment.