exoframe icon indicating copy to clipboard operation
exoframe copied to clipboard

Github Action for Exoframe

Open yamalight opened this issue 6 years ago • 3 comments
trafficstars

Github actions are releasing soon-ish. Having a prepared github action for exoframe would be neat. The easiest way to go about it would be to fork heroku (see also npm, npx) action and tweak it accordingly. Something like this should work:

workflow "Deploy" {
  on = "push"
  resolves = ["deploy"]
}

action "deploy" {
  uses = "exoframe/action@master"
  args = "deploy -e http://exo.server.com -t $EXO_TOKEN"
  secrets = ["EXO_TOKEN"]
}

yamalight avatar Aug 21 '19 12:08 yamalight

No longer sure the action is needed. This seems to work pretty well:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Use Node.js 12
        uses: actions/setup-node@v1
        with:
          node-version: 12
      - name: install
        run: yarn install
      - name: deploy
        run: npx exoframe -u -e https://exoframe.example.net -t $EXO_TOKEN
        env:
          EXO_TOKEN: ${{ secrets.EXO_TOKEN }}

Maybe just documenting this would be enough 🤔

yamalight avatar Nov 06 '19 08:11 yamalight

I like the possibility to have commit comments with the deployed url like this now action has it: https://github.com/amondnet/now-deployment

anbraten avatar Mar 10 '20 17:03 anbraten

@anbraten huh, that is indeed a pretty neat idea. thanks for sharing!

yamalight avatar Mar 10 '20 18:03 yamalight