this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ’š CI build trigger system

+117 -86
+51 -51
.github/workflows/database.yml
··· 1 - name: Rebuild database 2 - 3 - on: 4 - workflow_dispatch: 5 - schedule: 6 - - cron: "0 0 * * *" # Every day at midnight 7 - 8 - permissions: 9 - contents: write 10 - 11 - jobs: 12 - rebuild-database: 13 - runs-on: ubuntu-latest 14 - name: Rebuild database 15 - steps: 16 - - name: Checkout repository 17 - uses: actions/checkout@v4 18 - - name: Install native dependencies 19 - run: | 20 - sudo add-apt-repository ppa:alessandro-strada/ppa --yes 21 - sudo apt update 22 - sudo apt-get install --yes imagemagick curl unzip jq google-drive-ocamlfuse 23 - - name: Install ffmpeg 24 - uses: FedericoCarboni/setup-ffmpeg@v3 25 - - name: Install github cli 26 - uses: sersoft-gmbh/setup-gh-cli-action@v2 27 - - name: Setup Go 28 - uses: actions/setup-go@v4 29 - with: 30 - go-version: "1.24" 31 - - name: Install ortfo/db 32 - run: | 33 - go install github.com/ortfo/db/cmd@v1.7.2 34 - mv ~/go/bin/cmd /usr/bin/ortfodb 35 - - name: Write service account key file 36 - uses: mobiledevops/secret-to-file-action@v1 37 - with: 38 - base64-encoded-secret: ${{ secrets.GOOGLE_DRIVE_CLIENT_SERVICE_ACCOUNT_KEY_BASE64 }} 39 - filename: .serviceaccount.json 40 - working-directory: ./ 41 - is-executable: false 42 - - name: Setup projects directory 43 - run: mkdir -p ~/projects 44 - - name: Setup google drive directory 45 - run: | 46 - google-drive-ocamlfuse -id ${{ secrets.GOOGLE_DRIVE_CLIENT_ID }} -secret ${{ secrets.GOOGLE_DRIVE_CLIENT_SECRET }} -serviceaccountpath .serviceaccount.json 47 - google-drive-ocamlfuse ~/projects 48 - - name: Rebuild database 49 - run: ortfodb --scattered build database.json 50 - env: 51 - GH_TOKEN: ${{ github.token }} 1 + name: Rebuild database 2 + 3 + on: 4 + workflow_dispatch: 5 + schedule: 6 + - cron: "0 0 * * *" # Every day at midnight 7 + 8 + permissions: 9 + contents: write 10 + 11 + jobs: 12 + rebuild-database: 13 + runs-on: ubuntu-latest 14 + name: Rebuild database 15 + steps: 16 + - name: Checkout repository 17 + uses: actions/checkout@v4 18 + - name: Install native dependencies 19 + run: | 20 + sudo add-apt-repository ppa:alessandro-strada/ppa --yes 21 + sudo apt update 22 + sudo apt-get install --yes imagemagick curl unzip jq google-drive-ocamlfuse 23 + - name: Install ffmpeg 24 + uses: FedericoCarboni/setup-ffmpeg@v3 25 + - name: Install github cli 26 + uses: sersoft-gmbh/setup-gh-cli-action@v2 27 + - name: Setup Go 28 + uses: actions/setup-go@v4 29 + with: 30 + go-version: "1.24" 31 + - name: Install ortfo/db 32 + run: | 33 + go install github.com/ortfo/db/cmd@v1.7.2 34 + mv ~/go/bin/cmd /usr/bin/ortfodb 35 + - name: Write service account key file 36 + uses: mobiledevops/secret-to-file-action@v1 37 + with: 38 + base64-encoded-secret: ${{ secrets.GOOGLE_DRIVE_CLIENT_SERVICE_ACCOUNT_KEY_BASE64 }} 39 + filename: .serviceaccount.json 40 + working-directory: ./ 41 + is-executable: false 42 + - name: Setup projects directory 43 + run: mkdir -p ~/projects 44 + - name: Setup google drive directory 45 + run: | 46 + google-drive-ocamlfuse -id ${{ secrets.GOOGLE_DRIVE_CLIENT_ID }} -secret ${{ secrets.GOOGLE_DRIVE_CLIENT_SECRET }} -serviceaccountpath .serviceaccount.json 47 + google-drive-ocamlfuse ~/projects 48 + - name: Rebuild database 49 + run: ortfodb --scattered build database.json 50 + env: 51 + GH_TOKEN: ${{ github.token }}
+44 -35
.github/workflows/publish.yml
··· 1 - name: Deploy to GitHub Pages 2 - 3 - on: 4 - push: 5 - branches: [main] 6 - 7 - permissions: 8 - contents: write 9 - 10 - jobs: 11 - build: 12 - permissions: 13 - contents: write 14 - 15 - runs-on: ubuntu-latest 16 - 17 - steps: 18 - - name: Checkout repository 19 - uses: actions/checkout@v4 20 - 21 - - name: Set up Node.js 22 - uses: actions/setup-node@v4 23 - with: 24 - node-version: "22.16.0" 25 - 26 - - name: Install dependencies 27 - run: npm install 28 - 29 - - name: Build project 30 - run: BUILD_COMMIT=${{ github.sha }} npm run build 31 - 32 - - name: Deploy to GitHub Pages 33 - uses: JamesIves/github-pages-deploy-action@v4 34 - with: 35 - folder: public # The folder the action should deploy. 1 + # Copy pasted from portfolio-build-* repositories for ease of access 2 + # Does nothing here 3 + 4 + name: Deploy to GitHub Pages 5 + 6 + on: 7 + workflow_dispatch: 8 + repository_dispatch: 9 + types: 10 + - build 11 + 12 + permissions: 13 + contents: write 14 + 15 + jobs: 16 + build: 17 + permissions: 18 + contents: write 19 + 20 + runs-on: ubuntu-latest 21 + 22 + steps: 23 + - name: Checkout repository 24 + uses: actions/checkout@v4 25 + 26 + - name: Set up Node.js 27 + uses: actions/setup-node@v4 28 + with: 29 + node-version: "22.16.0" 30 + 31 + - name: Install dependencies 32 + run: npm install 33 + 34 + - name: Build project 35 + run: | 36 + # Extract the language from the repository name 37 + # e.g., "portfolio-build-en" gives "en" 38 + lang=$(echo ${{ github.repository }} | sed 's:${{ github.repository_owner }}/portfolio-build-::') 39 + LANG=$lang BUILD_COMMIT=${{ github.sha }} npm run build 40 + 41 + - name: Deploy to GitHub Pages 42 + uses: JamesIves/github-pages-deploy-action@v4 43 + with: 44 + folder: dist # The folder the action should deploy.
+22
.github/workflows/trigger-publish.yml
··· 1 + name: Trigger build and deploy 2 + 3 + on: 4 + workflow_dispatch: 5 + push: 6 + branches: 7 + - main 8 + 9 + jobs: 10 + trigger: 11 + name: Trigger 12 + runs-on: ubuntu-latest 13 + strategy: 14 + matrix: 15 + language: [en, fr] 16 + steps: 17 + - name: Dispatch workflow 18 + uses: peter-evans/repository-dispatch@v3 19 + with: 20 + repository: gwennlbh/portfolio-build-${{ matrix.language }} 21 + event-type: build 22 + token: ${{ secrets.REPOSITORY_DISPATCH_PAT }}