From 5945fb5bb4a4f56bc298c725ff543b5a65427888 Mon Sep 17 00:00:00 2001 From: "shopify[bot]" <79544226+shopify[bot]@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:48:02 +0000 Subject: [PATCH 1/2] Add Shopify Oxygen deployment workflow file --- .../workflows/oxygen-deployment-360738.yml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/oxygen-deployment-360738.yml diff --git a/.github/workflows/oxygen-deployment-360738.yml b/.github/workflows/oxygen-deployment-360738.yml new file mode 100644 index 00000000..ecebaa3d --- /dev/null +++ b/.github/workflows/oxygen-deployment-360738.yml @@ -0,0 +1,55 @@ +# Don't change the line below! +#! oxygen_storefront_id: 360738 + +name: Storefront 360738 +on: [push] + +permissions: + contents: read + deployments: write + +jobs: + deploy: + name: Deploy to Oxygen + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + check-latest: true + + - name: Get yarn cache directory + id: yarn-cache-dir-path + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + + - uses: actions/cache@v3 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + id: 'install-dependencies' + run: yarn + + - name: Build and Publish to Oxygen + id: deploy + uses: shopify/oxygenctl-action@v4 + with: + oxygen_deployment_token: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_360738 }} + build_command: "HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL yarn build" + + # Create GitHub Deployment + - name: Create GitHub Deployment + uses: shopify/github-deployment-action@v1 + if: always() + with: + token: ${{ github.token }} + environment: 'preview' + preview_url: ${{ steps.deploy.outputs.url }} + description: ${{ github.event.head_commit.message }} From a55e194c4d7e288f76b33d4d5b0f7d6ef2eb9d0c Mon Sep 17 00:00:00 2001 From: CHIRISHOP <126655766+CHIRISHOP@users.noreply.github.com> Date: Wed, 1 Mar 2023 04:59:06 -0600 Subject: [PATCH 2/2] Update and rename .github/workflows/oxygen-deployment-360738.yml to .github/flujos de trabajo/oxygen-deployment-360738.yml --- .../oxygen-deployment-360738.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/{workflows => flujos de trabajo}/oxygen-deployment-360738.yml (97%) diff --git a/.github/workflows/oxygen-deployment-360738.yml b/.github/flujos de trabajo/oxygen-deployment-360738.yml similarity index 97% rename from .github/workflows/oxygen-deployment-360738.yml rename to .github/flujos de trabajo/oxygen-deployment-360738.yml index ecebaa3d..fdf21a8d 100644 --- a/.github/workflows/oxygen-deployment-360738.yml +++ b/.github/flujos de trabajo/oxygen-deployment-360738.yml @@ -45,7 +45,7 @@ jobs: build_command: "HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL yarn build" # Create GitHub Deployment - - name: Create GitHub Deployment + - name: oxygen-deployment-360738.yml uses: shopify/github-deployment-action@v1 if: always() with: