mirror of
https://gitea.com/gitea/theme.git
synced 2024-06-02 18:01:23 +05:30
37 lines
1 KiB
YAML
37 lines
1 KiB
YAML
name: Build and Publish Docs site
|
|
run-name: docusaurus build docs site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- techknowlogick-patch-1
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- name: make temporary directories
|
|
run: |
|
|
apt update -y && apt install -y rsync python python3-pip
|
|
pip install awscli
|
|
- name: build npm
|
|
run: |
|
|
npm ci
|
|
npm run clean
|
|
npm run build
|
|
npm run release
|
|
- name: aws credential configure
|
|
uses: https://github.com/aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: ${{ secrets.AWS_REGION }}
|
|
- name: Copy files to the production website with the AWS CLI
|
|
run: |
|
|
aws s3 cp dist/main.tar.gz s3://dl-gitea-com/theme/
|