iridia-ulb / references

Repository of shared bibtex files (references)
https://iridia-ulb.github.io/references/
10 stars 1 forks source link

Move deploy from travis-ci to github actions #10

Closed albertofranzin closed 1 year ago

albertofranzin commented 3 years ago

Last November, travis-ci deployed a new pricing model, eliminating the free accounts https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing

I just checked the account that does the continuous integration for this repo, we've been automatically transferred to the "free" trial account which includes 10000 credits, which allow for ~1000 minutes of computation on linux machines. When we'll run out of credits, we'll have to buy new ones.

We still have plenty of credits (at the current rate, enough for the next 3 years), so it is not urgent at all. But maybe we can start considering alternatives?

MLopez-Ibanez commented 3 years ago

Definitely. If we can move to github actions, that would be great. Unfortunately, I don't have much experience with github actions, so if you know how, just go ahead and do it! :-)

albertofranzin commented 3 years ago

Cool, I'm learning now about github actions :)

Ok, I'll try to figure it out. Apparently there are tools for that https://github.com/marketplace/actions/github-action-for-latex I'll check this out when I have a bit of time.

MLopez-Ibanez commented 3 years ago

Thanks! It is possible to have both in parallel for a time, so feel free to experiment.

MLopez-Ibanez commented 3 years ago

I worked on this a bit. These are the things that need still some work:

MLopez-Ibanez commented 3 years ago

The main remaining obstacles is travis_deploy.sh. The rest is already converted.

MLopez-Ibanez commented 2 years ago

I have removed travis_deploy.sh. Now we save the generated pdf files to the gh-pages branch. This way we also avoid large files in the master branch.

MLopez-Ibanez commented 2 years ago

There is one remaining issue. Travis does the following to create the webpage:

deploy:
  - provider: pages
    skip_cleanup: true
    name: $GIT_NAME
    email: $GIT_EMAIL
    github_token: $GH_TOKEN
    keep_history: true
    local_dir: web
    verbose: true
    on:
      branch: master

Not sure how to do that in github-actions.

MLopez-Ibanez commented 1 year ago

Fixed in 4bfa40a3d572cbe0533e9b984f003a3e44dfb74e