← Files Stack InternalARCHIVED FILE

.github/workflows/package-plugin.yml

765 Bytes · Nov 5, 2026 · 00:36 UTC

↓ Download file

See the change to this file →

name: Package plugin

on:
  push:
    branches:
      - main

permissions:
  contents: read

jobs:
  package:
    name: Create plugin archive
    runs-on: ubuntu-latest

    steps:
      - name: Check out repository
        uses: actions/checkout@v7

      - name: Create ZIP archive
        env:
          ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.sha }}.zip
        run: |
          mkdir -p dist
          git archive --format=zip --output="dist/${ARCHIVE_NAME}" HEAD

      - name: Upload ZIP archive
        uses: actions/upload-artifact@v7
        with:
          name: ${{ github.event.repository.name }}-${{ github.sha }}
          path: dist/*.zip
          if-no-files-found: error
          archive: false
          retention-days: 30

SHA-256: 14afd4c3533635fe3493018eea3412f00ace0fc1e780fb9bbd5584d1ef2f43ac