generated from Seekra/repository-template
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7c90ab189
|
||
|
|
b989830cf5
|
||
|
|
e2e064008a
|
||
|
|
bedadf1d12
|
||
|
|
0713d6827e
|
@@ -0,0 +1,37 @@
|
|||||||
|
name: Deploy on production
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy on production
|
||||||
|
|
||||||
|
runs-on: node-minio
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set alias
|
||||||
|
run: |
|
||||||
|
mc alias set minio "${{ vars.S3_PROD_URL }}" "${{ secrets.S3_PROD_ACCESS_KEY }}" "${{ secrets.S3_PROD_SECRET_KEY }}"
|
||||||
|
|
||||||
|
- name: Upload assets to MinIO
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
BUCKET="${{ vars.S3_PROD_BUCKET_NAME }}"
|
||||||
|
BUILD_ID=$(date -u +%Y-%m-%d)-$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
|
echo "Build ID: $BUILD_ID"
|
||||||
|
|
||||||
|
mkdir -p ./src
|
||||||
|
|
||||||
|
mc cp --recursive ./src/ "minio/$BUCKET/builds/$BUILD_ID"
|
||||||
|
echo "Copied files successfully"
|
||||||
@@ -1,3 +1,15 @@
|
|||||||
# repository-template
|
# frontend-assets
|
||||||
|
|
||||||
The template for repositories
|
The assets for the frontend of the search engine *Seekra*
|
||||||
|
|
||||||
|
## Project structure
|
||||||
|
|
||||||
|
All assets are located in subfolders for their asset type in `src/`. Assets types are:
|
||||||
|
|
||||||
|
- Fonts (`fonts`)
|
||||||
|
- Images (`images`)
|
||||||
|
- Videos (`videos`)
|
||||||
|
- Audio (`audio`)
|
||||||
|
- Icons (`icons`)
|
||||||
|
|
||||||
|
There are also some special `src/` subfolders like those for legal content.
|
||||||
Reference in New Issue
Block a user