1
0

Add publish workflow

This commit is contained in:
Tim Kächele 2021-08-20 18:52:45 +02:00
parent 574f186f0f
commit b99bebde74

36
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Publish to public vinted take-home-task repository
on:
push:
branches:
- main
jobs:
test:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
persist-credentials: false
- name: Remove git history
run: rm -rf .git
- name: Initialize new git repo
run: |
git init
git checkout -b main
- name: Set user credentials
run: |
git config user.name 'Vinted'
git config user.email 'no-reply@vinted.com'
- name: Commit changes
run: |
git add -A
git commit -m "First commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.API_TOKEN }}
branch: main
repository: TimKaechele/planet_express_squashed
force: true