wip: git install #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Release Package | |
runs-on: self-hosted | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: Set Main Ubuntu Repository | |
run: | | |
codename=$(lsb_release -cs) | |
echo "deb http://archive.ubuntu.com/ubuntu $codename main restricted universe multiverse" > /etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu $codename-updates main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu $codename-backports main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb http://security.ubuntu.com/ubuntu $codename-security main restricted universe multiverse" >> /etc/apt/sources.list | |
- name: Git install | |
run: apt-get update -y && apt-get install git-all -y | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
repository: aziontech/azion-web-kit | |
ref: main | |
path: '.' | |
clean: true | |
fetch-depth: '0' | |
lfs: 'false' | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.6.1 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@aziontech' | |
always-auth: true | |
- name: Github Login | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Github Package Publish | |
run: npm publish |