diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..2a2c769 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy +on: + push: + tags: + - '*' +jobs: + push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '10.x' + - run: npm install -g zapier-platform-cli + - run: | + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config user.name "$GITHUB_ACTOR" + npm install + npm version $(git describe --tags --abbrev=0) + zapier push + env: + CI: true + ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} diff --git a/.gitignore b/.gitignore index 8929c5e..dd87e2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules -build/build.zip +build diff --git a/package.json b/package.json index 113d807..fd403e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "habitica", - "version": "2.2.1", + "version": "0.0.0", "description": "Habitica is a free habit building and productivity app that treats real life like a game. With in-game rewards and punishments to motivate you and a strong social network to inspire you, Habitica can help you achieve your goals to become healthy, hard-working, and happy.", "repository": "HabitRPG/habitica-zapier", "homepage": "https://habitica.com/",