From 366d8df787586ab2c0f544feddb99fa9a00af46e Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Thu, 16 Nov 2023 14:41:10 +0100 Subject: [PATCH] trigger ci --- .github/workflows/1.txt | 1 + .github/workflows/build-and-publish.yml | 29 +++++++++++++++++++++++++ .github/workflows/build-only.yml | 15 +++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .github/workflows/1.txt create mode 100644 .github/workflows/build-and-publish.yml create mode 100644 .github/workflows/build-only.yml diff --git a/.github/workflows/1.txt b/.github/workflows/1.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.github/workflows/1.txt @@ -0,0 +1 @@ +1 diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml new file mode 100644 index 0000000..d2dc774 --- /dev/null +++ b/.github/workflows/build-and-publish.yml @@ -0,0 +1,29 @@ +--- +name: Build and Publish +on: + push: + branches: + - main +jobs: + build-and-publish: + name: Build and publish + runs-on: ubuntu-latest + container: cs3org/cs3apis-build:master + steps: + - 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 + - name: build-and-publish + run: cs3apis-build -git-ssh -push-go -push-js -push-node -push-python diff --git a/.github/workflows/build-only.yml b/.github/workflows/build-only.yml new file mode 100644 index 0000000..577ce4b --- /dev/null +++ b/.github/workflows/build-only.yml @@ -0,0 +1,15 @@ +--- +name: Build only +on: + pull_request: + branches: [ "main" ] +jobs: + build: + name: Build only + runs-on: ubuntu-latest + container: cs3org/cs3apis-build:master + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: build-and-publish + run: cs3apis-build