mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
📎 Add build tag workflow and minor changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Upload Penpot Bundles
|
name: Build and Upload Penpot Bundle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Create bundle from manual action
|
# Create bundle from manual action
|
||||||
@@ -11,8 +11,8 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bundles:
|
build-bundle:
|
||||||
name: Build and Upload Penpot Bundles
|
name: Build and Upload Penpot Bundle
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "gh_branch=${{ inputs.gh_ref }}" >> $GITHUB_OUTPUT
|
echo "gh_ref=${{ inputs.gh_ref }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Run manage.sh build-bundle from host
|
- name: Run manage.sh build-bundle from host
|
||||||
run: ./manage.sh build-bundle
|
run: ./manage.sh build-bundle
|
||||||
@@ -40,16 +40,22 @@ jobs:
|
|||||||
mkdir zips
|
mkdir zips
|
||||||
mv bundles penpot
|
mv bundles penpot
|
||||||
|
|
||||||
- name: Create zip bundles
|
- name: Create zip bundle
|
||||||
run: |
|
run: |
|
||||||
echo "📦 Packaging Penpot bundles..."
|
echo "📦 Packaging Penpot bundle..."
|
||||||
zip -r zips/penpot.zip penpot
|
zip -r zips/penpot.zip penpot
|
||||||
|
|
||||||
- name: Upload Penpot bundle to S3
|
- name: Upload Penpot bundle to S3
|
||||||
|
if: github.ref_type == 'branch'
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.gh_branch}}-latest.zip
|
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.gh_ref }}-latest.zip
|
||||||
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.commit_hash }}.zip
|
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.commit_hash }}.zip
|
||||||
|
|
||||||
|
- name: Upload Penpot bundle to S3
|
||||||
|
if: github.ref_type == 'tag'
|
||||||
|
run: |
|
||||||
|
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.gh_ref }}.zip
|
||||||
|
|
||||||
- name: Notify Mattermost
|
- name: Notify Mattermost
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: mattermost/action-mattermost-notify@master
|
uses: mattermost/action-mattermost-notify@master
|
||||||
@@ -57,5 +63,5 @@ jobs:
|
|||||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }}
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }}
|
||||||
TEXT: |
|
TEXT: |
|
||||||
❌ *[PENPOT] Error during the execution of the job*
|
❌ *[PENPOT] Error during the execution of the job*
|
||||||
📄 Triggered from ref: `${{ steps.vars.outputs.gh_branch}}`
|
📄 Triggered from ref: `${{ steps.vars.outputs.gh_ref }}`
|
||||||
🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
4
.github/workflows/build-develop.yml
vendored
4
.github/workflows/build-develop.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Upload Penpot DEVELOP Bundles
|
name: Build and Upload Penpot DEVELOP Bundle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-develop-bundle:
|
build-develop-bundle:
|
||||||
uses: ./.github/workflows/build-bundles.yml
|
uses: ./.github/workflows/build-bundle.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
gh_ref: "develop"
|
gh_ref: "develop"
|
||||||
|
|||||||
4
.github/workflows/build-staging.yml
vendored
4
.github/workflows/build-staging.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Upload Penpot STAGING Bundles
|
name: Build and Upload Penpot STAGING Bundle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-staging-bundle:
|
build-staging-bundle:
|
||||||
uses: ./.github/workflows/build-bundles.yml
|
uses: ./.github/workflows/build-bundle.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
gh_ref: "staging"
|
gh_ref: "staging"
|
||||||
|
|||||||
13
.github/workflows/build-tag.yml
vendored
Normal file
13
.github/workflows/build-tag.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
name: Build and Upload Penpot TAG Bundle
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-tag-bundle:
|
||||||
|
uses: ./.github/workflows/build-bundle.yml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
gh_ref: ${{ github.ref_name }}
|
||||||
Reference in New Issue
Block a user