diff --git a/.changeset/fair-bats-listen.md b/.changeset/fair-bats-listen.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/fair-bats-listen.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.changeset/thin-dancers-float.md b/.changeset/thin-dancers-float.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/thin-dancers-float.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index 9fb77c82f5e..f68efdca883 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -11,6 +11,7 @@ jobs: outputs: hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} hasPublished: ${{ steps.changesets.outputs.published }} + publishedPackages: ${{ steps.changesets.outputs.publishedPackages }} env: GITHUB_TOKEN: ${{ github.token }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -27,6 +28,22 @@ jobs: commit: "version packages" version: yarn ci:version publish: yarn ci:publish + # deployment: + # runs-on: ubuntu-latest + # needs: version + # permissions: + # deployments: write + # steps: + # - uses: actions/checkout@v3 + # - uses: ./.github/actions/setup + # - uses: chrnorm/deployment-action@v2 + # name: Create GitHub deployment + # id: deployment + # with: + # token: "$GITHUB_TOKEN" + # environment-url: http://cultureamp.design + # environment: production + # description: ${{ needs.version.outputs.publishedPackages }} notify-slack: runs-on: ubuntu-latest needs: diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 00000000000..f3597b14448 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,24 @@ +name: "Deployment" + +on: + workflow_dispatch: + inputs: + environment: + description: "Environment to deploy to" + type: environment + required: true + +jobs: + deployment: + runs-on: ubuntu-latest + permissions: + deployments: write + steps: + - uses: actions/checkout@v3 + - uses: chrnorm/deployment-action@v2 + name: Create GitHub deployment + id: deployment + with: + token: ${{ github.token }} + environment-url: http://cultureamp.design + environment: ${{ github.event.inputs.environment }}