summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2024-07-11 23:43:26 +1000
committerGitHub <noreply@github.com>2024-07-11 14:43:26 +0100
commit1b8b6801d4f896409a765d302e7e0d50ff089692 (patch)
treea0669cf4858248d05678a422c700d4c90fcd446c /.github/workflows
parentcc62eb503d8e0b1cb1be869597a5a972ebbca5f6 (diff)
[CI] Add index page generator. (#23737)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci_build_major_branch.yml24
1 files changed, 18 insertions, 6 deletions
diff --git a/.github/workflows/ci_build_major_branch.yml b/.github/workflows/ci_build_major_branch.yml
index 77755ba71f..0e772c7d53 100644
--- a/.github/workflows/ci_build_major_branch.yml
+++ b/.github/workflows/ci_build_major_branch.yml
@@ -77,44 +77,56 @@ jobs:
77 runs-on: ubuntu-latest 77 runs-on: ubuntu-latest
78 78
79 steps: 79 steps:
80 - name: Disable safe.directory check
81 run: |
82 git config --global --add safe.directory '*'
83
84 - name: Checkout QMK Firmware
85 uses: actions/checkout@v4
86
80 - name: Download firmwares 87 - name: Download firmwares
81 uses: actions/download-artifact@v4 88 uses: actions/download-artifact@v4
82 with: 89 with:
83 pattern: firmware-* 90 pattern: firmware-*
84 path: firmwares 91 path: .
85 merge-multiple: true 92 merge-multiple: true
86 93
94 - name: Generate index page
95 run: |
96 python3 -m pip install -r ./util/ci/requirements.txt
97 ./util/ci/index_generator.py > index.html
98
87 - name: Upload to https://ci.qmk.fm/${{ inputs.branch || github.ref_name }}/${{ github.sha }} 99 - name: Upload to https://ci.qmk.fm/${{ inputs.branch || github.ref_name }}/${{ github.sha }}
88 uses: jakejarvis/s3-sync-action@master 100 uses: jakejarvis/s3-sync-action@master
89 with: 101 with:
90 args: --acl public-read --follow-symlinks --delete 102 args: --acl public-read --follow-symlinks --delete --exclude '*' --include 'index.html' --include '*.hex' --include '*.bin' --include '*.uf2'
91 env: 103 env:
92 AWS_S3_BUCKET: ${{ vars.CI_QMK_FM_SPACES_BUCKET }} 104 AWS_S3_BUCKET: ${{ vars.CI_QMK_FM_SPACES_BUCKET }}
93 AWS_ACCESS_KEY_ID: ${{ secrets.CI_QMK_FM_SPACES_KEY }} 105 AWS_ACCESS_KEY_ID: ${{ secrets.CI_QMK_FM_SPACES_KEY }}
94 AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_QMK_FM_SPACES_SECRET }} 106 AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_QMK_FM_SPACES_SECRET }}
95 AWS_REGION: ${{ vars.CI_QMK_FM_SPACES_REGION }} 107 AWS_REGION: ${{ vars.CI_QMK_FM_SPACES_REGION }}
96 AWS_S3_ENDPOINT: ${{ vars.CI_QMK_FM_SPACES_ENDPOINT }} 108 AWS_S3_ENDPOINT: ${{ vars.CI_QMK_FM_SPACES_ENDPOINT }}
97 SOURCE_DIR: firmwares 109 SOURCE_DIR: .
98 DEST_DIR: ${{ inputs.branch || github.ref_name }}/${{ github.sha }} 110 DEST_DIR: ${{ inputs.branch || github.ref_name }}/${{ github.sha }}
99 111
100 - name: Upload to https://ci.qmk.fm/${{ inputs.branch || github.ref_name }}/latest 112 - name: Upload to https://ci.qmk.fm/${{ inputs.branch || github.ref_name }}/latest
101 uses: jakejarvis/s3-sync-action@master 113 uses: jakejarvis/s3-sync-action@master
102 with: 114 with:
103 args: --acl public-read --follow-symlinks --delete 115 args: --acl public-read --follow-symlinks --delete --exclude '*' --include 'index.html' --include '*.hex' --include '*.bin' --include '*.uf2'
104 env: 116 env:
105 AWS_S3_BUCKET: ${{ vars.CI_QMK_FM_SPACES_BUCKET }} 117 AWS_S3_BUCKET: ${{ vars.CI_QMK_FM_SPACES_BUCKET }}
106 AWS_ACCESS_KEY_ID: ${{ secrets.CI_QMK_FM_SPACES_KEY }} 118 AWS_ACCESS_KEY_ID: ${{ secrets.CI_QMK_FM_SPACES_KEY }}
107 AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_QMK_FM_SPACES_SECRET }} 119 AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_QMK_FM_SPACES_SECRET }}
108 AWS_REGION: ${{ vars.CI_QMK_FM_SPACES_REGION }} 120 AWS_REGION: ${{ vars.CI_QMK_FM_SPACES_REGION }}
109 AWS_S3_ENDPOINT: ${{ vars.CI_QMK_FM_SPACES_ENDPOINT }} 121 AWS_S3_ENDPOINT: ${{ vars.CI_QMK_FM_SPACES_ENDPOINT }}
110 SOURCE_DIR: firmwares 122 SOURCE_DIR: .
111 DEST_DIR: ${{ inputs.branch || github.ref_name }}/latest 123 DEST_DIR: ${{ inputs.branch || github.ref_name }}/latest
112 124
113 - name: Check if failure marker file exists 125 - name: Check if failure marker file exists
114 id: check_failure_marker 126 id: check_failure_marker
115 uses: andstor/file-existence-action@v3 127 uses: andstor/file-existence-action@v3
116 with: 128 with:
117 files: firmwares/.failed 129 files: ./.failed
118 130
119 - name: Fail build if needed 131 - name: Fail build if needed
120 if: steps.check_failure_marker.outputs.files_exists == 'true' 132 if: steps.check_failure_marker.outputs.files_exists == 'true'