diff --git a/.github/workflows/oxygen-deployment.yml b/.github/workflows/oxygen-deployment.yml new file mode 100644 index 0000000..08a2e80 --- /dev/null +++ b/.github/workflows/oxygen-deployment.yml @@ -0,0 +1,63 @@ + +name: Deploy +on: [push] + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + check-latest: true + + - name: Get yarn cache directory + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v2 + 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: Generate deployment ID + id: deployment-id + run: | + yarn add ulid + echo "::set-output name=ID::$(LC_ALL=C