From 33da0eb223bd3a0b19e86fa9b51ed79db8f056c9 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 13 Feb 2024 15:05:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/build=5Fcomposer.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build_composer.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build_composer.yaml diff --git a/.gitea/workflows/build_composer.yaml b/.gitea/workflows/build_composer.yaml new file mode 100644 index 0000000..e7ed6e8 --- /dev/null +++ b/.gitea/workflows/build_composer.yaml @@ -0,0 +1,30 @@ + + +name: Publish PHP Package + +on: + push: + tags: + - 'v*' + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Get tag name + run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: zip and send + run: | + ls -la + apt-get update -y + apt-get install -y zip + cd ../ + zip -r ${{ gitea.event.repository.name }}.zip ${{ gitea.event.repository.name }} -x '*.git*' + curl -v \ + --user composer-pbl:${{ secrets.COMPOSER_PSWD }} \ + --upload-file ${{ gitea.event.repository.name }}.zip \ + https://git.bit5.ru/api/packages/bit/composer?version=${{ env.TAG }} \ No newline at end of file