2023-07-03 21:32:10 +00:00
|
|
|
name: Create archive
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'dev'
|
|
|
|
|
|
|
|
env:
|
|
|
|
REPOSITORY: ${{ gitea.repository }}
|
|
|
|
BUILD_NUMBER: ${{ gitea.run_number }}
|
|
|
|
REPO_AUTH_LOGIN: ${{ secrets.REPO_AUTH_LOGIN }}
|
2023-07-04 13:08:48 +00:00
|
|
|
REPO_AUTH_PASSWORD: ${{ secrets.REPO_AUTH_PASSWORD }}
|
2023-07-03 21:32:10 +00:00
|
|
|
REPO_AUTH_TOKEN: ${{ secrets.REPO_AUTH_TOKEN }}
|
|
|
|
BRANCH: ${{ gitea.ref_name }}
|
|
|
|
|
|
|
|
jobs:
|
2023-07-04 13:12:23 +00:00
|
|
|
create_archive:
|
|
|
|
name: Create archive
|
2023-07-03 21:32:10 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2023-07-04 13:15:07 +00:00
|
|
|
# container:
|
|
|
|
# image: gitea.kdiva.ru/infrastructure/archiver
|
|
|
|
# credentials:
|
|
|
|
# username: ${{ env.REPO_AUTH_LOGIN }}
|
|
|
|
# password: ${{ env.REPO_AUTH_PASSWORD }}
|
2023-07-03 21:32:10 +00:00
|
|
|
|
|
|
|
steps:
|
2023-07-04 13:15:07 +00:00
|
|
|
# - name: Checkout ${{env.REPOSITORY}}
|
|
|
|
# uses: actions/checkout@v3
|
|
|
|
# with:
|
|
|
|
# repository: ${{env.REPOSITORY}}
|
|
|
|
# github-server-url: https://gitea.kdiva.ru
|
2023-07-03 21:32:10 +00:00
|
|
|
|
2023-07-04 13:15:07 +00:00
|
|
|
# - name: Create archive
|
|
|
|
# run: |
|
|
|
|
# zip -r -9 ${{env.REPOSITORY}}-${{env.BRANCH}}-${{env.BUILD_NUMBER}}.zip ./src/
|
|
|
|
|
|
|
|
- name: test
|
2023-07-03 21:32:10 +00:00
|
|
|
run: |
|
2023-07-04 13:16:44 +00:00
|
|
|
echo "${{ env.REPO_AUTH_LOGIN }}"
|
2023-07-04 13:17:14 +00:00
|
|
|
echo "${{ env.REPO_AUTH_PASSWORD }}"
|