Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Action for Exoframe #260

Open
yamalight opened this issue Aug 21, 2019 · 3 comments
Open

Github Action for Exoframe #260

yamalight opened this issue Aug 21, 2019 · 3 comments
Milestone

Comments

@yamalight
Copy link
Contributor

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
Copy link
Contributor Author

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 🤔

@anbraten
Copy link

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

@yamalight
Copy link
Contributor Author

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

@yamalight yamalight mentioned this issue May 9, 2021
47 tasks
@yamalight yamalight added this to the 7.0 milestone May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants