Skip to content

remove token check step #819

remove token check step

remove token check step #819

Workflow file for this run

# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: oxygenctl Action CI
on: [push]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: "18"
check-latest: true
- name: Setup bot Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions Bot"
- name: Create a Hydrogen app
run: |
npm --version
npm create @shopify/hydrogen@latest -- --template hello-world --language ts --path hydrogen-app --install-deps false
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: |
cd hydrogen-app
npm install
- name: Deploy to Oxygen
uses: ./
id: oxygenctl-action
with:
commit_message: ${{ github.event.head_commit.message }}
commit_timestamp: ${{ github.event.head_commit.timestamp }}
oxygen_deployment_token: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN }}
path: ./hydrogen-app
build_command: "HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL yarn build"
- name: Output check
run: |
url='${{ steps.oxygenctl-action.outputs.url }}'
echo $url
curl $url -sS